Hi, I'll see what I can do. I've enabled logging for my get-mail icon, and I've added an alert message when the sync was not successful. But the error only seems to occur under certain conditions when Mails were read on both the client and the server I havn't really nailed down yet. So far I've been unable to reproduce them 'on demand'. They usually occur when I for some reason can't use offlineimap for some time and have to read my mails on the server (e.g. with the recent b0rkage of offlineimap); however deliberately doing so didn't trigger it. Nor did half a day of reading my mails on the server while being at the university; it still synched fine afterwards.
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. best regards, Erich Schubert -- erich@(vitavonni.de|debian.org) -- GPG Key ID: 4B3A135C (o_ There is no branch of mathematics, however abstract, which may not //\ some day be applied to phenomena of the real world. --- Lobatchevsky V_/_ Mathematik ist die Kunst, verschiedene Dinge mit demselben Namen zu belegen. --- Henri Poincaré