[Zope-dev] MailHost.py does not set the "Date" header, who's bug?
Lennart Regebro
lennart@torped.se
Fri, 11 Oct 2002 13:51:57 +0200
From: "Lennart Regebro" <lennart@torped.se>
> Indeed, reading in RFC 2822, the origination date-field is required, which
> means that the header munging done in MailHost should also look for a date
> header and add it if it doesn't exist.
A simple addition of:
if not mo.getheader('Date'):
mo['Date'] = DateTime().rfc822()
in _mungeHeaders did it. I'll check this in. I did however find a possible
bug in DateTime().rfc822(), see next post about that.
Best Regards
Lennart Regebro, Torped
http://www.easypublisher.com/