chiark / gitweb /
strip out some system headers, caused trouble during my testing
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 27 Aug 2018 11:26:15 +0000 (12:26 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 27 Aug 2018 11:26:15 +0000 (12:26 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
stump/bin/submission.pl

index b1a7df4..fdd5acc 100755 (executable)
@@ -282,6 +282,9 @@ sub ignoreHeader {
   return 1 if( $header =~ /^Sender:/i );
   return 1 if( $header =~ /^In-Reply-To:/i );
   return 1 if( $header =~ /^Originator:/i );
+  return 1 if( $header =~ /^X-Trace:/i );
+  return 1 if( $header =~ /^X-Complaints-To:/i );
+  return 1 if( $header =~ /^NNTP-Posting-Date:/i );
 
   return 0;
 }