From 3b2e5e066de97adc45b2df610111569a4f2fccbf Mon Sep 17 00:00:00 2001 From: Thomas Hochstein Date: Sat, 15 May 2010 16:36:52 +0200 Subject: [PATCH] Change: Drop %LM from subject if Last-Modified is not found. Signed-off-by: Thomas Hochstein --- yapfaq.pl | 2 ++ 1 file changed, 2 insertions(+) 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?