docker-offlineimap/offlineimap/folder
Sebastian Spaeth 760698253b LocalStatus: Don't ignore Exceptions on os.fsync
Earlier we would ignore *ALL* Exceptions that could occur during the
fsyncing of our LocalStatus database. Ignoring all Exceptions is not the
right thing here though. A recent commit improved the situation by
raising at least KeyboardInterrupt Exceptions, but that is still not
optimal.

os.fsync() is available on Unix, and Windows starting in python
2.2.3. so it should always work. If it doesn't, something is wrong.

It has been suggested to only catch EnvironmentError (ie SystemError and
OSError) here, but even those should be thrown. Something *is* wrong if
this fails and we should not ignore it.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2011-01-14 19:25:11 +01:00
..
__init__.py Add Gmail IMAP special support. 2008-01-03 04:56:55 +01:00
Base.py Catch KeyboardInterrupt exceptions explicitely 2011-01-14 19:25:11 +01:00
Gmail.py [imaplib2 removal] Revert "Implementation of IMAP IDLE" 2009-08-12 14:49:58 -05:00
IMAP.py Merge branch 'ss/ui' into next 2011-01-05 19:31:08 +01:00
LocalStatus.py LocalStatus: Don't ignore Exceptions on os.fsync 2011-01-14 19:25:11 +01:00
Maildir.py Save ui as self.ui in folder/Base class 2011-01-05 19:24:00 +01:00
UIDMaps.py Sync INTERNALDATE <-> mtime 2006-08-22 02:09:36 +01:00