]> code.delx.au - offlineimap/commitdiff
/offlineimap/head: changeset 467
authorjgoerzen <jgoerzen>
Tue, 29 Apr 2003 21:30:26 +0000 (22:30 +0100)
committerjgoerzen <jgoerzen>
Tue, 29 Apr 2003 21:30:26 +0000 (22:30 +0100)
When sep was /, the new Maildir support code would recursively try to
scan ., resulting in huge paths and an eventual crash. Fixed with a
one-line patch to Maildir.py. Closes: [complete.org #60] Sergei, The
below diff is going into 3.99.16. You can apply it to 3.99.15 and it
should work for you now. Please let me know. (Ignore any patch errors
for debian/changelog). Thanks for the report.

offlineimap/head/debian/changelog
offlineimap/head/offlineimap/repository/Maildir.py

index 9bf16267d64720a684ea930b5301cd469e5455ef..831c14e52b98abb0df527484e7a9f2978621a8b9 100644 (file)
@@ -1,6 +1,9 @@
 offlineimap (3.99.16) unstable; urgency=low
 
   * This is a 4.0 TRACK release, and may be unstable or in flux!
+  * When sep was /, the new Maildir support code would recursively try to 
+    scan ., resulting in huge paths and an eventual crash.  Fixed with
+    a one-line patch to Maildir.py.  Fixes [complete.org #60].
 
  -- John Goerzen <jgoerzen@complete.org>  Tue, 29 Apr 2003 08:10:17 -0500
 
index 95efa449a2b5c8dc6004d8e491c2042ee2942652..a6c305697aa66ebac3e73665bdc304ccf72fb9ca 100644 (file)
@@ -132,7 +132,7 @@ class MaildirRepository(BaseRepository):
 
                 retval.append(folder.Maildir.MaildirFolder(self.root, foldername,
                                                            self.getsep(), self, self.accountname))
-            if self.getsep() == '/':
+            if self.getsep() == '/' and dirname != '.':
                 # Check sub-directories for folders.
                 retval.extend(self._getfolders_scandir(root, foldername))
         self.debug("_GETFOLDERS_SCANDIR RETURNING %s" % \