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

32c32,38
< 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
40a47
> from email.Utils import formatdate
156a164
>     mimemsg['Date'] = email.Utils.formatdate(localtime=1)
163a172
>     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. ------------------------------------------------------ Mailman-Users mailing list [email protected] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/

Reply via email to