Hi,
thanks to your help I can get traceback errors for the imaplib. But what about
accessing direct imap errors? In the following part of my script I can't select
the not-deleted mails for some reason. But how do I access the error? The
debugger goes to the exception line but OSError.strerror d
On 30.11.2014, at 21:11, Chris Angelico wrote:
>
> 2) Network failures and auth problems should be dealt with the same
> way. Change one line of code:
> except (imaplib.IMAP4.error, OSError):
>
> Now it'll cope with OSError the same way it copes with IMAP errors.
>
> Does that answer your quest
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'
Hi,
first poster here. I still consider myself pretty much a Python newbie.
Let's say I have the following very simple Python code:
import imaplib
host = 'imap.gmail.com'
try:
imap_connection = imaplib.IMAP4(host)
print('success')
except imaplib.IMAP4.error:
print('authentication fa