Update of /cvsroot/mailman/mailman/Mailman
In directory usw-pr-cvs1:/tmp/cvs-serv31928
Modified Files:
Tag: Release_2_0_1-branch
Message.py
Log Message:
OutgoingMessage.__init__(): RFC 2822 requires a Date: header, and we
can't count on the MTA to add one if it's missing. In particular,
Qmail does not. So we're forced to do it.
Index: Message.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Message.py,v
retrieving revision 1.40.2.1
retrieving revision 1.40.2.2
diff -C2 -d -r1.40.2.1 -r1.40.2.2
*** Message.py 2 Apr 2002 22:08:02 -0000 1.40.2.1
--- Message.py 3 Apr 2002 22:40:41 -0000 1.40.2.2
***************
*** 196,199 ****
--- 196,203 ----
# make sure that the first line does NOT contain a colon!
Message.__init__(self, StringIO(text))
+ # RFC 2822 requires a Date: header, and while most MTAs add one if
+ # it's missing, Qmail does not.
+ if not self.get('date'):
+ self['Date'] = Utils.formatdate(localtime=1)
_______________________________________________
Mailman-checkins mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-checkins