Locally created mailboxes not synchronized to IMAP
Sebastian Spaeth
Sebastian at SSpaeth.de
Wed Aug 17 11:42:03 BST 2011
On Tue, 16 Aug 2011 12:42:14 +0200, Vladimir Marek <Vladimir.Marek at Oracle.COM> wrote:
> BTW, is this correct way of handling exceptions: ?
>
> --- a/offlineimap/folder/Base.py
> +++ b/offlineimap/folder/Base.py
> @@ -428,7 +428,7 @@ class BaseFolder(object):
> action(dstfolder, statusfolder)
> except (KeyboardInterrupt):
> raise
> - except OfflineImap, e:
> + except OfflineImapError, e:
> if e.severity > OfflineImapError.ERROR.FOLDER:
> raise
> self.ui.error(e, exc_info()[2])
Uhh, did I introduce that? Your version if right of course. We catch
OfflineImapErrors, and when they are severe we bubble them up to the
next layers, otherwise we simply log the error and continue with the
next operation.
Hope this helps
Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20110817/450fb163/attachment-0001.sig>
More information about the OfflineIMAP-project
mailing list