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

noreply@sourceforge.net noreply@sourceforge.net
Sun, 09 Sep 2001 23:39:13 -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.

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

>Comment By: Martin v. Löwis (loewis)
Date: 2001-09-09 23:39

Message:
Logged In: YES 
user_id=21627

>From a shallow inspection, the code itself looks ok, 
structurally and from the proposed new features. Please 
indicate whether you are willing to write patches to the 
documentation, since the current patch includes none. In 
particular, the new module deserves a documentation entry; 
copying the doc strings is fine. You may also consider 
writing a Misc/NEWS entry.


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

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