From 6b73bdfdd3d5bae759bfa4a01f6dd98517e21f48 Mon Sep 17 00:00:00 2001 From: Thomas Hochstein Date: Sat, 24 Jan 2026 18:25:31 +0100 Subject: [PATCH] Don't modify headers while --testing if -o is set. Signed-off-by: Thomas Hochstein --- ChangeLog | 2 +- bin/yapfaq.pl | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index a350e1a..2c79fb0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,5 @@ yapfaq 1.1.0 (unreleased) - +* --test: Set Supersedes and don't modify Message-ID if -o is set. yapfaq 1.0.1 (2025-01-24) * Add %t placeholder for Message-ID (feature parity with 0.9). diff --git a/bin/yapfaq.pl b/bin/yapfaq.pl index 080dd3e..f3bc3ca 100755 --- a/bin/yapfaq.pl +++ b/bin/yapfaq.pl @@ -475,7 +475,7 @@ sub BuildPosting { $_ =~ s/\%p/$$/g; $_ =~ s/\%t/$TimeStamp/g; # add random part in test mode - if ($OptTest) { + if ($OptTest && !$OptOutput) { my $random = sprintf("%08X", rand(0xFFFFFFFF)); $_ =~ s/ to show if just one project is due. =item B<-t>, B<--test> Test mode. Don't update project status (time and Message-ID of last -posting), dont' add a I header and modify the -I with a random part. +posting); if project is posted to Usenet, dont' add a I +header and modify the I with a random part. The text(s) will still be posted if due or forced by B<--force>.