Getting errors from Imaplib

Beatrix Willius from Moth Software mail at beatrixwillius.de
Sun Nov 30 15:42:14 CET 2014


Hi Chris,

no, pinging Yahoo doesn't work. But this is an additional problem - perhaps I tested too often. This is one of my accounts for Imap testing and I only copied the value from Mail.

For getting the error back this doesn't really matter.

> import imaplib
> 
> host = 'imap.mail.yahoo.com'
> try:
>   imap_connection = imaplib.IMAP4(host)
>   print('success')
> except imaplib.IMAP4.error:
>   print('authentication failed')

> On 30.11.2014, at 13:02, Chris Angelico <rosuav at gmail.com> wrote:
> 
> You're getting an error before it even gets as far as authenticating -
> there's a network-level issue here. Are you able to ping that host?
> Something's not connected.

Mit freundlichen Grüßen/Regards

Trixi Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals




More information about the Python-list mailing list