Test mode: Add X-Supersedes only if Supersedes would be set.
Fixes #28. Signed-off-by: Thomas Hochstein <thh@inter.net>
This commit is contained in:
parent
373681d034
commit
0b68926d7c
|
@ -300,7 +300,8 @@ sub postfaq {
|
||||||
$$NG = $Options{'t'};
|
$$NG = $Options{'t'};
|
||||||
$MID =~ s/@/-$Timestamp-test@/g;
|
$MID =~ s/@/-$Timestamp-test@/g;
|
||||||
$$ExtraHeaders .= "\n" if $$ExtraHeaders;
|
$$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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue