[PATCH] mbnames: fix the filename extension for the intermediate files

Nicolas Sebrecht nicolas.s-dev at laposte.net
Tue Jul 5 23:17:30 UTC 2016


Signed-off-by: Nicolas Sebrecht <nicolas.s-dev at laposte.net>
---
 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):
-- 
2.7.4




More information about the OfflineIMAP-project mailing list