[PATCH] fix magicline import

Nicolas Sebrecht nicolas.s-dev at laposte.net
Wed May 25 21:25:09 BST 2011


commit 0318c6a [Create LocalStatus or LocalStatusSQLite folders] changes import
of LocalStatus but doesn't preserve magicline.

Signed-off-by: Nicolas Sebrecht <nicolas.s-dev at laposte.net>
---

Here's the patch that should fix the magicline issue.


 offlineimap/repository/LocalStatus.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/offlineimap/repository/LocalStatus.py b/offlineimap/repository/LocalStatus.py
index cc22dd2..022be21 100644
--- a/offlineimap/repository/LocalStatus.py
+++ b/offlineimap/repository/LocalStatus.py
@@ -17,7 +17,7 @@
 #    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 
 from Base import BaseRepository
-from offlineimap.folder.LocalStatus import LocalStatusFolder
+from offlineimap.folder.LocalStatus import LocalStatusFolder, magicline
 from offlineimap.folder.LocalStatusSQLite import LocalStatusSQLiteFolder
 import os
 import re
@@ -67,7 +67,7 @@ class LocalStatusRepository(BaseRepository):
 
         filename = self.getfolderfilename(foldername)
         file = open(filename + ".tmp", "wt")
-        file.write(offlineimap.folder.LocalStatus.magicline + '\n')
+        file.write(magicline + '\n')
         file.close()
         os.rename(filename + ".tmp", filename)
         # Invalidate the cache.
-- 
1.7.5.2.609.g6dbbf





More information about the OfflineIMAP-project mailing list