[Mailman-Users] Sendmail Milter subsystem telling sendmail todiscard Mailman digests

Jeff Groves jgroves at krenim.org
Wed Feb 2 04:36:56 CET 2005

FWIW, here are my diffs for Handlers/ToDigest.py to fix the problem where digests don't get a 
Date: header:

< from types import ListType
 > import email
 > import email.Message
 > import email.Utils
 > from email.Charset import Charset
 > from email.Header import Header
 > from types import ListType, StringType
 > from email.Utils import formatdate
 >     mimemsg['Date'] = email.Utils.formatdate(localtime=1)
 >     rfc1153msg['Date'] = email.Utils.formatdate(localtime=1)

Having never coded in Python before and never submitted a diff before, please bear with me if 
I overkilled something!

Jeff G.

Jeff Groves wrote:
> Thanks Tokio, but I already coded the fix myself :o)
> And you are correct, the problem is in Handlers/ToDigest.py.   What took 
> me so long was figuring out the syntax to import email.Utils and its 
> friends.
> Not saying that I learned Python, but I was able to glean enough of it 
> to hack a fix for my issue.
> Jeff G.
> Tokio Kikuchi wrote:
>> Jeff Groves wrote:
>>> So, I'm going to have to learn python and figure out where it's not 
>>> putting the Date: header and make it do it myself.
>> Hi, I think I can fix this in Handlers/ToDigest.py
>> The digests don't go through Message.py which was fixed in 2.1 beta 1.
>> # I think someone posted the patch but it slipped off from my search 
>> paths.

Law of Procrastination:
         Procrastination avoids boredom; one never has
         the feeling that there is nothing important to do.

More information about the Mailman-Users mailing list