Test mode: Add X-Supersedes only if Supersedes would be set.
authorThomas Hochstein <thh@inter.net>
Sun, 31 Oct 2010 17:42:52 +0000 (18:42 +0100)
committerThomas Hochstein <thh@inter.net>
Sun, 31 Oct 2010 17:42:52 +0000 (18:42 +0100)
Fixes #28.

Signed-off-by: Thomas Hochstein <thh@inter.net>
yapfaq.pl

index ccf6881..5bc7919 100644 (file)
--- a/yapfaq.pl
+++ b/yapfaq.pl
@@ -300,7 +300,8 @@ sub postfaq {
     $$NG = $Options{'t'};
     $MID =~ s/@/-$Timestamp-test@/g;
     $$ExtraHeaders .= "\n" if $$ExtraHeaders;
     $$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;
   }
 
     undef $$Supersedes;
   }
 
This page took 0.01047 seconds and 4 git commands to generate.