From da1e16083d07cd165061d545561d85de5d2aa4d7 Mon Sep 17 00:00:00 2001 From: Thomas Hochstein Date: Sat, 24 Jan 2026 18:15:45 +0100 Subject: [PATCH 1/4] Release 1.0.1 Signed-off-by: Thomas Hochstein --- ChangeLog | 2 +- bin/yapfaq.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 20fd80a..a49b981 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,4 @@ -yapfaq 1.0.1 (unreleased) +yapfaq 1.0.1 (2025-01-24) * Add %t placeholder for Message-ID (feature parity with 0.9). * Remove debugging code. diff --git a/bin/yapfaq.pl b/bin/yapfaq.pl index f88f014..08ebddc 100755 --- a/bin/yapfaq.pl +++ b/bin/yapfaq.pl @@ -19,7 +19,7 @@ # It can be redistributed and/or modified under the same terms under # which Perl itself is published. -my $VERSION = "1.0.1-unreleased"; +my $VERSION = "1.0.1"; (my $NAME = $0) =~ s#^.*/##; use utf8; From 6b73bdfdd3d5bae759bfa4a01f6dd98517e21f48 Mon Sep 17 00:00:00 2001 From: Thomas Hochstein Date: Sat, 24 Jan 2026 18:25:31 +0100 Subject: [PATCH 2/4] 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>. From ae4714e30d0554f80ad6b9eba8d8b5409acbf178 Mon Sep 17 00:00:00 2001 From: Thomas Hochstein Date: Sat, 24 Jan 2026 18:42:41 +0100 Subject: [PATCH 3/4] Imply -o for --testing as long as -n is not set. Signed-off-by: Thomas Hochstein --- ChangeLog | 1 + bin/yapfaq.pl | 23 ++++++++++++----------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2c79fb0..c021313 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ yapfaq 1.1.0 (unreleased) * --test: Set Supersedes and don't modify Message-ID if -o is set. +* --test: Force -o if -n is not 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 f3bc3ca..b561dae 100755 --- a/bin/yapfaq.pl +++ b/bin/yapfaq.pl @@ -112,6 +112,9 @@ if ($OptSimulation) { $Config{'verbose'} = 1; } +# -t implies -o if -n is not set +$OptOutput = 1 if $OptTest && !$OptNewsgroup; + ### create list of @Projects from $Config{'datadir'} unless -p is set my @Projects; if (!$OptProject) { @@ -843,7 +846,7 @@ unique I (and no I header). Don't post via NNTP, but print to STDOUT. -Combine with B<--test> to avoid updating project status. +Use B<--test> instead to avoid updating project status. Intended for testing purposes or to pipe in another program like I or I. If you want to pipe the output to another @@ -861,7 +864,7 @@ Display this man page and exit. =item B<-s>, B<--simulation> Simulation mode. Don't post, just show which projects would be due. -Implies B<--test> and B<--verbose>. +Implies B<--test> (without B<--output>) and B<--verbose>. Can be combined with B<--project> to show if just one project is due. @@ -871,10 +874,8 @@ Test mode. Don't update project status (time and Message-ID of last 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>. - -Combine with B<--output> to redirect output to STDOUT or with -B<--newsgroup> to override the I header. +Implies B<--output> (to redirect output to STDOUT) as long as +B<--newsgroup> (to override the I header) is not set. =item B<-V>, B<--version> @@ -911,16 +912,16 @@ that are not: Do a test run of your I text and and print it on STDOUT (whether ist is due or not): - yapfaq.pl -t -f -o -p example - (or yapfaq.pl -tfop example) + yapfaq.pl -t -f -p example + (or yapfaq.pl -tfp example) The same, with debugging output (add "-d"): - yapfaq.pl -tfdop example + yapfaq.pl -tfdp example Force a test post of your I text to I, even if -the text is not due to be posted (same as before, just replace "-o" -by "-n alt-test"): +the text is not due to be posted (same as before, just add +"-n alt-test"): yapfaq.pl -t -f -p example -n alt.test From de5163c877f74c088b9878c0cbc7c061c7672cf1 Mon Sep 17 00:00:00 2001 From: Thomas Hochstein Date: Sat, 24 Jan 2026 18:50:36 +0100 Subject: [PATCH 4/4] Change version suffix to '-pre'(release). Signed-off-by: Thomas Hochstein --- bin/yapfaq.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/yapfaq.pl b/bin/yapfaq.pl index b561dae..be517c0 100755 --- a/bin/yapfaq.pl +++ b/bin/yapfaq.pl @@ -19,7 +19,7 @@ # It can be redistributed and/or modified under the same terms under # which Perl itself is published. -my $VERSION = "1.1.0-unreleased"; +my $VERSION = "1.1.0-pre"; (my $NAME = $0) =~ s#^.*/##; use utf8;