From 175479d91953a606efe0ff4cc36666701e2b0c6b Mon Sep 17 00:00:00 2001 From: Nicolas Sebrecht Date: Wed, 6 Jul 2016 01:15:33 +0200 Subject: [PATCH] mbnames: fix the filename extension for the intermediate files Signed-off-by: Nicolas Sebrecht --- offlineimap/mbnames.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/offlineimap/mbnames.py b/offlineimap/mbnames.py index f8ea577..cce0b21 100644 --- a/offlineimap/mbnames.py +++ b/offlineimap/mbnames.py @@ -43,11 +43,13 @@ def add(accountname, folder_root, foldername): with _mbLock: _mbnames.addAccountFolder(accountname, folder_root, foldername) + def init(conf, ui, dry_run): global _mbnames if _mbnames is None: _mbnames = _Mbnames(conf, ui, dry_run) + def prune(accounts): global _mbnames if _mbnames.is_enabled() is True: @@ -55,6 +57,7 @@ def prune(accounts): else: _mbnames.pruneAll(accounts) + def write(): """Write the mbnames file.""" @@ -65,6 +68,7 @@ def write(): if _mbnames.get_incremental() is not True: _mbnames.write() + def writeIntermediateFile(accountname): """Write intermediate mbnames file.""" @@ -87,7 +91,7 @@ class _IntermediateMbnames(object): self._accountname = accountname self._folder_root = folder_root self._folderfilter = folderfilter - self._path = path.join(mbnamesdir, "%s.yml"% accountname) + self._path = path.join(mbnamesdir, "%s.json"% accountname) self._dryrun = dry_run def add(self, foldername):