chiark / gitweb /
Leave "Date" header alone.
authorMatthew Vernon <matthewv@chiark.greenend.org.uk>
Thu, 20 Mar 2014 12:26:42 +0000 (12:26 +0000)
committerMatthew Vernon <matthewv@chiark.greenend.org.uk>
Thu, 20 Mar 2014 12:26:42 +0000 (12:26 +0000)
Prior to this change, Stump removed the supplied Date: header, and
replaced it with one of its own, which reflected the time at which the
article was approved. Following discussion in unnm, it seemed clear
that people would like the Date: header to be unmolested.

Signed-off-by: Matthew Vernon <matthewv@chiark.greenend.org.uk>
stump/bin/processApproved
stump/bin/submission.pl

index a62333e..cd1f13c 100755 (executable)
@@ -40,14 +40,12 @@ post() {
     # I do grep above because a lot of users inserts empty
     # lines in the added headers.
 
-    echo Date: `date -R`
     cat $TMPFILE                                       \
       | formail -f -a "Newsgroups: $NEWSGROUP"         \
            -I Path:                                    \
             -I X-Moderate-For:                          \
             -I Return-Path:                             \
             -I X-Mailer:                                \
-           -I "Date:"                                  \
             -I "X-400-Received:"                        \
            -I Received: -I "From "                     \
            -a "Approved: $PMUSER_APPROVAL"             \
index e49680f..73c7239 100755 (executable)
@@ -270,7 +270,6 @@ sub ignoreHeader {
   return 1 if( $header =~ /^Supersedes:/i );
   return 1 if( $header =~ /^Precedence:/i );
   return 1 if( $header =~ /^Apparently-To:/i );
-  return 1 if( $header =~ /^Date:/i );
   return 1 if( $header =~ /^Expires:/i );
   return 1 if( $header =~ /^Distribution:/i );
   return 1 if( $header =~ /^Path:/i );