[Patches] [ python-Patches-460112 ] SMTP AUTH patch

noreply@sourceforge.net noreply@sourceforge.net
Sun, 09 Sep 2001 18:29:52 -0700


Patches item #460112, was opened at 2001-09-09 18:29
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=460112&group_id=5470

Category: Library (Lib)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Gerhard Hдring (ghaering)
Assigned to: Nobody/Anonymous (nobody)
Summary: SMTP AUTH patch

Initial Comment:
This patch adds SMTP authentication support to Python's
smtplib module. The methods supported by this patch are
"CRAM-MD5" and "PLAIN". It also adds a new module hmac
for a keyed hash (PEP 247 compatible) to the standard
library. The hmac module is needed for the CRAM-MD5
authentication method, but could also be useful for
IMAP authentication, for example.

I tested this patch against the authenticated SMTP
MTA's Postfix (on my own machine) and qmail (on the
german Freemail provider GMX).

It has one known weakness that I currently don't know
how to fix: the return code in case of a failed
authentication is always 500 "Bad syntax".

Especially the changes to smtlib, but also the new hmac
module would like to be reviewed by experienced RFC
readers, SMTP and/or Python wizards.

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

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