[Patches] [ python-Patches-613708 ] Add smtplib support for SMTP AUTH LOGIN

noreply@sourceforge.net noreply@sourceforge.net
Tue, 24 Sep 2002 02:48:03 -0700


Patches item #613708, was opened at 2002-09-24 10:48
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=613708&group_id=5470

Category: Library (Lib)
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Paul Moore (pmoore)
Assigned to: Nobody/Anonymous (nobody)
Summary: Add smtplib support for SMTP AUTH LOGIN

Initial Comment:
Adds support for SMTP AUTH logins using the LOGIN 
protocol (in addition to currently supported PLAIN and 
CRAM-MD5 options). This is added as a "last resort" 
option after the other two, so no change should be 
visible against servers supporting either of the two 
currently supported methods.

This patch has been tested against a Microsoft 
Windows 2000 SMTP server (which supports LOGIN, 
but not either of the other two options).

The patch also includes a small change to handle MS 
SMTP server (broken???) behaviour in sending a line 
AUTH=xxxx line in response to EHLO in addition to the 
standard AUTH protocol protocol ... This change simply 
changes the feature match regular expression to ignore 
feature names followed by anything other than space or 
end of line. Alternative approaches could involve 
specifically trapping repeated features, and ignoring the 
second and subsequent occurrences, or somehow 
combining the repeated occurrences. I don't believe that 
this adds anything over the simple approach taken in the 
patch.

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

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