[Patches] [ python-Patches-791776 ] factor out SMTPHandler.emit date handling

SourceForge.net noreply at sourceforge.net
Wed Aug 18 14:28:13 CEST 2004


Patches item #791776, was opened at 2003-08-20 10:30
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=791776&group_id=5470

Category: Library (Lib)
Group: Python 2.4
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Andrew Gaul (gaul)
Assigned to: Nobody/Anonymous (nobody)
Summary: factor out SMTPHandler.emit date handling

Initial Comment:
Change SMTPHandler.emit to use email.Utils.formatdate
for date formatting.  This changes the format from

    Wdy, DD Mon YYYY HH:MM:SS GMT

to

    Wdy, DD Mon YYYY HH:MM:SS (+/-)DDDD

which is the preferred format for email messages
according to RFC 2822.  This format is also accepted by
the obsolete RFCs 822 and 1123, so there should be no
compatibility problems.

----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2004-08-18 14:28

Message:
Logged In: YES 
user_id=21627

Thanks for the patch. Committed as handlers.py 1.17, NEWS
1.1100.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=791776&group_id=5470


More information about the Patches mailing list