docker-offlineimap/offlineimap
John Goerzen 6caaea36e0 Fix Maildir race
fixes deb#439384

From: martin f krafft
Subject: race condition in Maildir writing

The offlineimap Maildir code checks for file existence and then
opens a file. That's open to a race condition. It's better to open
the file and fail if it already exists. The following patch does
this. It catches OSError 17 (file exists) and re-raises all others.
I'll leave it up to you to decide whether this is appropriate.
2007-10-19 01:06:18 +01:00
..
folder Fix Maildir race 2007-10-19 01:06:18 +01:00
repository Synchronize newly created folders both ways 2007-09-02 01:43:15 +01:00
ui Fixed locked() for noninteractive UIs 2007-10-10 00:12:22 +01:00
__init__.py Step 2 of SVN to arch tree conversion 2005-04-16 20:33:35 +01:00
accounts.py Daniel Jacobowitz patches 2007-10-01 22:20:37 +01:00
CustomConfig.py Update FSF address 2006-08-12 05:15:55 +01:00
imaplibutil.py Fix non-SSL connection 2007-07-12 11:02:19 +01:00
imapserver.py Implement connect 2007-07-05 05:04:14 +01:00
imaputil.py Update FSF address 2006-08-12 05:15:55 +01:00
init.py Daniel Jacobowitz patches 2007-10-01 22:20:37 +01:00
localeval.py Update FSF address 2006-08-12 05:15:55 +01:00
mbnames.py Update FSF address 2006-08-12 05:15:55 +01:00
syncmaster.py Clean up imaplib imports 2007-07-04 18:53:48 +01:00
threadutil.py Update FSF address 2006-08-12 05:15:55 +01:00
version.py Daniel Jacobowitz patches 2007-10-01 22:20:37 +01:00