Now create cur,new,tmp in '.' even if existsok is false
Otherwise, there was a race where sometimes subfolders would get created first in the sep = '.' scneario fixes #64
This commit is contained in:
		| @@ -87,7 +87,7 @@ class MaildirRepository(BaseRepository): | |||||||
|         # makedirs will fail because the higher-up dir already exists. |         # makedirs will fail because the higher-up dir already exists. | ||||||
|         # So, check to see if this is indeed the case. |         # So, check to see if this is indeed the case. | ||||||
|  |  | ||||||
|         if (self.getsep() == '/' or self.getconfboolean('existsok', 0)) \ |         if (self.getsep() == '/' or self.getconfboolean('existsok', 0) or foldername == '.') \ | ||||||
|             and os.path.isdir(foldername): |             and os.path.isdir(foldername): | ||||||
|             self.debug("makefolder: %s already is a directory" % foldername) |             self.debug("makefolder: %s already is a directory" % foldername) | ||||||
|             # Already exists.  Sanity-check that it's not a Maildir. |             # Already exists.  Sanity-check that it's not a Maildir. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 John Goerzen
					John Goerzen