A bug of esmtp

[email protected] Wed, 23 Sep 2009 04:20:08 -0000
Newsgroups gmane.comp.python.twisted.bugs
Message-ID <[email protected]>
New submission from TorryCn <None>:

1.

http://twistedmatrix.com/trac/browser/tags/releases/twisted-8.2.0/twisted/mail/smtp.py#L1730

if chal== "Username:"

sometime, smpt server is nonstandard.   chal is "username:" or "USERNAME:"

so,  if chal.lower() == "username:"    maybe is better

and, the line 1732 is  elif chal == 'Password:'  , it can be  elif chal.lower() == 'password:'

and, the line 1390 is challenge == "Username:"  ,it can be challenge.lower() == "username:"

My English is poor, if you can't understand what I say, please contact me. [email protected]


Thank you!



----------
Type     : defect
Component: core
Keywords : 
Priority : normal
Nosy     : 
----------
http://twistedmatrix.com/trac/ticket/4031