[Tutor] telnetlib's read_very_eager() method?
James Hartley
jjhartley at gmail.com
Wed Sep 14 22:40:18 CEST 2011
On Wed, Sep 14, 2011 at 1:13 PM, Walter Prins <wprins at gmail.com> wrote:
> On 14 September 2011 21:03, James Hartley <jjhartley at gmail.com> wrote:
>
>> On Wed, Sep 14, 2011 at 12:54 PM, Walter Prins <wprins at gmail.com> wrote:
>>
> Aside: If you want to interact with a mail server there's probably better
>> modules to be using than the telnet module.
>>
>>>
>>>
>> Do you have any suggestions?
>>
>
> The smtplib module: http://docs.python.org/library/smtplib.html
>
Wow, I wasn't aware this existed. It appears to have what I was looking
for, too. My goal was to validate email addresses in bulk, so this reduces
the code I need to write. I also see that VRFY is disabled on some MX
servers, so I may have to resort to telnetlib's read_some() yet.
:-)
Thanks, again for your comments.
Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110914/869fe6b6/attachment-0001.html>
More information about the Tutor
mailing list