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
2007-08-01 02:29:06 +01:00
2007-10-19 01:03:59 +01:00
2007-10-19 01:06:18 +01:00
2006-08-12 05:15:55 +01:00
2007-07-04 18:54:41 +01:00
2006-12-02 22:03:05 +01:00
2007-03-27 08:20:44 +01:00
2007-10-19 01:00:12 +01:00
2007-08-01 02:29:06 +01:00
2007-10-01 22:20:37 +01:00

OfflineIMAP
Copyright (C) 2002 - 2006 John Goerzen <jgoerzen@complete.org>
This software comes with ABSOLUTELY NO WARRANTY; see the file
COPYING for details.  This is free software, and you are welcome
to distribute it under the conditions laid out in COPYING.

http://software.complete.org/offlineimap/

Please see manual.txt; the information previously in README has been moved
there.

Languages
Python 97.1%
Shell 2.3%
Makefile 0.4%
Dockerfile 0.2%