From afba647f620d33d71d04561160b9d6e75fa7e387 Mon Sep 17 00:00:00 2001 From: jgoerzen Date: Tue, 29 Apr 2003 22:30:26 +0100 Subject: [PATCH] /offlineimap/head: changeset 467 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 | 3 +++ offlineimap/head/offlineimap/repository/Maildir.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/offlineimap/head/debian/changelog b/offlineimap/head/debian/changelog index 9bf1626..831c14e 100644 --- a/offlineimap/head/debian/changelog +++ b/offlineimap/head/debian/changelog @@ -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 Tue, 29 Apr 2003 08:10:17 -0500 diff --git a/offlineimap/head/offlineimap/repository/Maildir.py b/offlineimap/head/offlineimap/repository/Maildir.py index 95efa44..a6c3056 100644 --- a/offlineimap/head/offlineimap/repository/Maildir.py +++ b/offlineimap/head/offlineimap/repository/Maildir.py @@ -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" % \