Merge branch 'master' of ssh://jpgarch@complete.org/~jpgarch/git/offlineimap
This commit is contained in:
commit
5c11de5285
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user