CACHE_FILENAME = "message_cache.dat"
CACHE_VERSION = "1"
+STATISTICS_FILENAME = "statistics.txt"
class CachingData:
"""This class is responsible for the caching of data."""
self.data[user][box_key] = MailboxState(name, uidvalidity, user)
logging.debug("New mailbox %s cached.", box_key)
return self.data[user][box_key]
-
+
def report_conflicts(self):
"""Write a date conflicts report in a file."""
- with open("conflict_stats.txt", 'w') as statsfile:
+ with open(STATISTICS_FILENAME, 'w') as statsfile:
owner_total_conflicts = {}
owner_total_missing = {}
for user in self.data: