New restoreatime patch

From: Ben Kibbey <bjk@luxsci.net>

Attached is a patch to restore the atime of Maildir folders after
syncing. It can be enabled via the 'restoreatime' boolean in the
configuration file. I needed this because offlineimap is run after a
fetchmail and my mail checker breaks.
This commit is contained in:
John Goerzen
2006-03-02 00:12:29 +01:00
parent fabbf81c1a
commit 405275f541
2 changed files with 27 additions and 0 deletions

View File

@ -33,6 +33,9 @@ class MaildirRepository(BaseRepository):
self.ui = UIBase.getglobalui()
self.debug("MaildirRepository initialized, sep is " + repr(self.getsep()))
def getrestoreatime(self):
return self.getconfboolean('restoreatime', 0)
def getlocalroot(self):
return os.path.expanduser(self.getconf('localfolders'))