On Tuesday 06 May 2008 2:12:18 pm Antonio Terceiro wrote:
> Package: offlineimap
> Version: 5.99.13
> Severity: important
>
> After the fix for #479677, offlineimap crashes for me (it also crashed
> before that), even after I wipe out both ~/.offlineimap and ~/Maildir.
>
> The first time I run offlineimap after wiping our the directories, I get
> this:

Please try the attached patch and let me know if it fixes the problem for 
you.

-- John
commit fe1d92f00e041eb66d1f573149ea9127bc2c15c1
Author: John Goerzen <[EMAIL PROTECTED]>
Date:   Tue May 6 18:23:48 2008 -0500

    Revert some previous attempts at localstatus creation
    
    refs deb#479798
    
    Reverts cf080844ac92df72db4a85d434b73f647ec51b95
    and 031e018ead749faa8250282ef5d46cc68f326869

diff --git a/offlineimap/repository/LocalStatus.py b/offlineimap/repository/LocalStatus.py
index 66de66a..8b7ac51 100644
--- a/offlineimap/repository/LocalStatus.py
+++ b/offlineimap/repository/LocalStatus.py
@@ -19,7 +19,7 @@
 from Base import BaseRepository
 from offlineimap import folder
 import offlineimap.folder.LocalStatus
-import os, re, os.path
+import os, re
 
 class LocalStatusRepository(BaseRepository):
     def __init__(self, reposname, account):
@@ -38,13 +38,8 @@ class LocalStatusRepository(BaseRepository):
         return os.path.join(self.directory, foldername)
 
     def makefolder(self, foldername):
-        # Create parent dirs
-        
-        filename = self.getfolderfilename(foldername)
-        if not os.path.isdir(os.path.dirname(filename)):
-            os.makedirs(os.path.dirname(filename), 0700)
-
         # "touch" the file, truncating it.
+        filename = self.getfolderfilename(foldername)
         file = open(filename + ".tmp", "wt")
         file.write(offlineimap.folder.LocalStatus.magicline + '\n')
         file.flush()

Reply via email to