Arguments parser added, conf file clarifications
[imap-fix-internaldate] / mailbox_state.py
index a786e32..2d1e3af 100644 (file)
@@ -92,6 +92,7 @@ class MailboxState:
         # cache is invalid if mailbox is synced with different tolerance
         if(len(self.uids)==0 or tolerance != self.tolerance):
             new_ids = list_ids
+            self.tolerance = tolerance
         else:
             for uid in list_ids:
                 try:
@@ -102,8 +103,7 @@ class MailboxState:
         self.uids = list_ids
         return new_ids
 
-    def confirm_change(self, tolerance):
+    def confirm_change(self):
         """Confirm the chages to the cached mailbox and specify used tolerance."""
         self.needs_save = True
-        self.tolerance = tolerance
         return