This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author funagayama
Recipients funagayama
Date 2008-03-07.07:42:55
SpamBayes Score 0.001034317
Marked as misclassified No
Message-id <1204875778.72.0.769426067571.issue2248@psf.upfronthosting.co.za>
In-reply-to
Content
Hi,

I've found that the quit() method of SMTP instance (of smtplib) doesn't
return it's result (such as '221 2.0.0 Bye') .
Other methods such as helo(), ehlo(), verify() etc.. returns it's result
correctly so I suppose it's a kind of bug.

I've made a small patch for this so please take a look at it (It looks
like someone just forgot to return the value of docmd()).

below is the code piece to represent the problem.

>>> import smtplib
>>> s = smtplib.SMTP('localhost')
>>> s.helo() #<---- returns result code
(250, 'localhost')
>>> s.vrfy('user@example.com') #<---- returns result code
(554, '5.7.1 <<user@example.com>>: Relay access denied')
>>> s.quit() #<----- doesn't return anything
>>>

Thanks,
Kei
History
Date User Action Args
2008-03-07 07:42:59funagayamasetspambayes_score: 0.00103432 -> 0.001034317
recipients: + funagayama
2008-03-07 07:42:58funagayamasetspambayes_score: 0.00103432 -> 0.00103432
messageid: <1204875778.72.0.769426067571.issue2248@psf.upfronthosting.co.za>
2008-03-07 07:42:57funagayamalinkissue2248 messages
2008-03-07 07:42:56funagayamacreate