From e87f213046fafd2ad053050b5d60d9e5bdd841a9 Mon Sep 17 00:00:00 2001 From: Nicolas Sebrecht Date: Wed, 25 May 2011 21:09:09 +0200 Subject: [PATCH] fix magicline import commit 0318c6a [Create LocalStatus or LocalStatusSQLite folders] changes import of LocalStatus but doesn't preserve magicline. Signed-off-by: Nicolas Sebrecht --- offlineimap/repository/LocalStatus.py | 4 ++-- 1 file 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.