# 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:
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