[PATCH 2/2] remove some rtime nonsense

Abdo Roig-Maranges abdo.roig at gmail.com
Thu Apr 2 13:41:48 BST 2015


This code was dead, since maildir message entries have no 'rtime' key.

Signed-off-by: Abdo Roig-Maranges <abdo.roig at gmail.com>
---
 offlineimap/folder/GmailMaildir.py | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/offlineimap/folder/GmailMaildir.py b/offlineimap/folder/GmailMaildir.py
index 894792d..c1924cb 100644
--- a/offlineimap/folder/GmailMaildir.py
+++ b/offlineimap/folder/GmailMaildir.py
@@ -159,8 +159,6 @@ class GmailMaildirFolder(MaildirFolder):
         content = self.deletemessageheaders(content, self.labelsheader)
         content = self.addmessageheader(content, '\n', self.labelsheader, labels_str)
 
-        rtime = self.messagelist[uid].get('rtime', None)
-
         # write file with new labels to a unique file in tmp
         messagename = self.new_message_filename(uid, set())
         tmpname = self.save_to_tmp_file(messagename, content)
@@ -174,9 +172,6 @@ class GmailMaildirFolder(MaildirFolder):
               (tmppath, filepath, e[1]), OfflineImapError.ERROR.FOLDER), \
               None, exc_info()[2]
 
-        if rtime != None:
-            os.utime(filepath, (rtime, rtime))
-
         # save the new mtime and labels
         self.messagelist[uid]['mtime'] = long(os.stat(filepath).st_mtime)
         self.messagelist[uid]['labels'] = labels
-- 
2.3.5





More information about the OfflineIMAP-project mailing list