[PATCH] Fix wrong import of magicline

Sebastian Spaeth Sebastian at SSpaeth.de
Tue May 31 15:40:35 BST 2011


In repository.LocalStatus we were using
offlineimap.folder.LocalStatus.magicline, but did not import it
correctly. This commit fixes the import and usage.

Signed-off-by: Sebastian Spaeth <Sebastian at SSpaeth.de>
---
 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.4.1





More information about the OfflineIMAP-project mailing list