Merge branch 'master' of ssh://jpgarch@complete.org/~jpgarch/git/offlineimap

This commit is contained in:
John Goerzen 2009-07-06 10:11:20 -05:00
commit 5c11de5285

View File

@ -199,9 +199,8 @@ class MaildirFolder(BaseFolder):
ui.debug('maildir', 'savemessage: moving from %s to %s' % \ ui.debug('maildir', 'savemessage: moving from %s to %s' % \
(tmpmessagename, messagename)) (tmpmessagename, messagename))
if tmpmessagename != messagename: # then rename it if tmpmessagename != messagename: # then rename it
os.link(os.path.join(tmpdir, tmpmessagename), os.rename(os.path.join(tmpdir, tmpmessagename),
os.path.join(tmpdir, messagename)) os.path.join(tmpdir, messagename))
os.unlink(os.path.join(tmpdir, tmpmessagename))
if self.dofsync: if self.dofsync:
try: try: