diff --git a/offlineimap/folder/Maildir.py b/offlineimap/folder/Maildir.py index f007b07..9783069 100644 --- a/offlineimap/folder/Maildir.py +++ b/offlineimap/folder/Maildir.py @@ -466,7 +466,8 @@ class MaildirFolder(BaseFolder): if uid not in self.messagelist: raise OfflineImapError("Cannot change unknown Maildir UID %s" % uid, OfflineImapError.ERROR.MESSAGE) - if uid == new_uid: return + if uid == new_uid: + return oldfilename = self.messagelist[uid]['filename'] dir_prefix, filename = os.path.split(oldfilename)