From 0b68926d7c23ec18aa9ed3df177c6e85abce8eb0 Mon Sep 17 00:00:00 2001 From: Thomas Hochstein Date: Sun, 31 Oct 2010 18:42:52 +0100 Subject: [PATCH] Test mode: Add X-Supersedes only if Supersedes would be set. Fixes #28. Signed-off-by: Thomas Hochstein --- yapfaq.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yapfaq.pl b/yapfaq.pl index ccf6881..5bc7919 100644 --- a/yapfaq.pl +++ b/yapfaq.pl @@ -300,7 +300,8 @@ sub postfaq { $$NG = $Options{'t'}; $MID =~ s/@/-$Timestamp-test@/g; $$ExtraHeaders .= "\n" if $$ExtraHeaders; - $$ExtraHeaders .= "X-Supersedes: $$Supersedes\nX-yapfaq-Remark: This is only a test message."; + $$ExtraHeaders .= "X-Supersedes: $$Supersedes\n" if $$Supersedes; + $$ExtraHeaders .= "X-yapfaq-Remark: This is only a test message."; undef $$Supersedes; }