Locally created mailboxes not synchronized to IMAP

Nicolas Sebrecht nicolas.s-dev at laposte.net
Fri Aug 19 17:40:04 BST 2011


On Wed, Aug 17, 2011 at 12:42:03PM +0200, Sebastian Spaeth wrote:
> 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.

A well-git-formatted patch, please!

-- 
Nicolas Sebrecht




More information about the OfflineIMAP-project mailing list