Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #81733

Re: Getting errors from Imaplib

Subject Re: Getting errors from Imaplib
From Beatrix Willius from Moth Software <mail@beatrixwillius.de>
Date 2014-11-30 15:42 +0100
References <4B0DF114-E705-47B3-9815-003899F174CE@beatrixwillius.de> <CAPTjJmo_eZ=Ga=J6vqasD0EG8ZiVP9OLJE7CGxHa1ba8Jkv9WA@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.16439.1417367026.18130.python-list@python.org> (permalink)

Show all headers | View raw


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@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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Getting errors from Imaplib Beatrix Willius from Moth Software <mail@beatrixwillius.de> - 2014-11-30 15:42 +0100

csiph-web