On Thu March 6 2008 6:44:13 am Erich Schubert wrote: > > You should IMHO still add some proper error handling for the situation > when that function returns None (e.g. when the IMAP server for whatever > reason doesn't return a message). The "type error" is a pretty ugly way > of failing in such a situation.
The unfortunate reality here is that I have to deal with imaplib.py, which makes such things incredibly difficult. Documentation states that a return value will always be such-and-such, but then you find that you get a list with too few elements, or None someplace, or whatnot. There are n different ways it can go wrong, all poorly understood. Someday, I plan to use a better IMAP library, for sure :-) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]