From 143c69d10720c9131c358dd57b0e27a70faef0a3 Mon Sep 17 00:00:00 2001 From: Thomas Hochstein Date: Wed, 21 Jan 2026 00:15:46 +0100 Subject: [PATCH 1/4] Fix typo. 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 61f4c3a..f1f7365 100755 --- a/bin/yapfaq.pl +++ b/bin/yapfaq.pl @@ -520,7 +520,7 @@ sub BuildPosting { if ($OptForce or (!$LastPosted) or ($LastPosted && $NextPosted <= DateTime->now)) { print "... is due and will be posted.\n" if $Config{'verbose'} or $Config{'debug'}; } else { - printf ("... is not due (next post at %s).\n", $NextPosted->strftime('%Y-%m-%d')) + printf("... is not due (next post at %s).\n", $NextPosted->strftime('%Y-%m-%d')) if $Config{'verbose'} or $Config{'debug'}; return ''; } From 5f3248760ef419189b0766c2fe2e0a5b2726b732 Mon Sep 17 00:00:00 2001 From: Thomas Hochstein Date: Wed, 21 Jan 2026 07:42:47 +0100 Subject: [PATCH 2/4] Add --simulation to usage info. Signed-off-by: Thomas Hochstein --- bin/yapfaq.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/yapfaq.pl b/bin/yapfaq.pl index f1f7365..29a98bc 100755 --- a/bin/yapfaq.pl +++ b/bin/yapfaq.pl @@ -213,6 +213,7 @@ sub ShowUsage { print " -t don't update project status (test)\n"; print " -n newsgroup post only to newsgroup (for testing)\n"; print " -o print to STDOUT (for testing or to pipe into inews)\n"; + print " -s only show which projects are due, implies -tv\n"; print " --datadir path override \$datadir\n"; print " --nntp-server name override \$nntp-server\n"; print " --nntp-port port override \$nntp-port\n"; @@ -855,6 +856,8 @@ Display this man page and exit. Simulation mode. Don't post, just show which projects would be due. Implies B<--test> and B<--verbose>. +Can be combined with B<--project> 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 From 9e63c45f0b3991f0a0d1f42d99f5f697a62a1d8f Mon Sep 17 00:00:00 2001 From: Thomas Hochstein Date: Wed, 21 Jan 2026 00:15:46 +0100 Subject: [PATCH 3/4] Fix typo. Signed-off-by: Thomas Hochstein --- bin/yapfaq.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/yapfaq.pl b/bin/yapfaq.pl index 61f4c3a..135b1ac 100755 --- a/bin/yapfaq.pl +++ b/bin/yapfaq.pl @@ -364,7 +364,7 @@ sub AuthNNTP { ### ------------------------------------------------------------------ ### build posting -# read and parser header and body from files +# read and parse header and body from files # read status file, check due date sub BuildPosting { my $Project = shift; @@ -520,7 +520,7 @@ sub BuildPosting { if ($OptForce or (!$LastPosted) or ($LastPosted && $NextPosted <= DateTime->now)) { print "... is due and will be posted.\n" if $Config{'verbose'} or $Config{'debug'}; } else { - printf ("... is not due (next post at %s).\n", $NextPosted->strftime('%Y-%m-%d')) + printf("... is not due (next post at %s).\n", $NextPosted->strftime('%Y-%m-%d')) if $Config{'verbose'} or $Config{'debug'}; return ''; } From d28ca61a328a29c9b3b44e1c458f89e8a75ec1f2 Mon Sep 17 00:00:00 2001 From: Thomas Hochstein Date: Wed, 21 Jan 2026 07:42:47 +0100 Subject: [PATCH 4/4] Add --simulation to usage info. Signed-off-by: Thomas Hochstein --- bin/yapfaq.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/yapfaq.pl b/bin/yapfaq.pl index 135b1ac..4013b2a 100755 --- a/bin/yapfaq.pl +++ b/bin/yapfaq.pl @@ -213,6 +213,7 @@ sub ShowUsage { print " -t don't update project status (test)\n"; print " -n newsgroup post only to newsgroup (for testing)\n"; print " -o print to STDOUT (for testing or to pipe into inews)\n"; + print " -s only show which projects are due, implies -tv\n"; print " --datadir path override \$datadir\n"; print " --nntp-server name override \$nntp-server\n"; print " --nntp-port port override \$nntp-port\n"; @@ -855,6 +856,8 @@ Display this man page and exit. Simulation mode. Don't post, just show which projects would be due. Implies B<--test> and B<--verbose>. +Can be combined with B<--project> 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