From: Thomas Hochstein Date: Sat, 15 May 2010 14:36:52 +0000 (+0200) Subject: Change: Drop %LM from subject if Last-Modified is not found. X-Git-Tag: v0.9~5 X-Git-Url: https://code.th-h.de/?p=usenet%2Fyapfaq.git;a=commitdiff_plain;h=3b2e5e066de97adc45b2df610111569a4f2fccbf Change: Drop %LM from subject if Last-Modified is not found. Signed-off-by: Thomas Hochstein --- diff --git a/yapfaq.pl b/yapfaq.pl index 6e3032c..5cba939 100644 --- a/yapfaq.pl +++ b/yapfaq.pl @@ -292,6 +292,8 @@ sub postfaq { #Replace %LM by the content of the news.answer-pseudo-header Last-modified: if ($LastModified) { $$Subject =~ s/\%LM/$LastModified/; + } else { + $$Subject =~ s/[<\[{\(]?\%LM[>\]}\)]?//; } # Test mode?