/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.
This commit is contained in:
jgoerzen 2003-04-29 22:30:26 +01:00
parent 3432a5e395
commit afba647f62
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,9 @@
offlineimap (3.99.16) unstable; urgency=low offlineimap (3.99.16) unstable; urgency=low
* This is a 4.0 TRACK release, and may be unstable or in flux! * 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 -- John Goerzen <jgoerzen@complete.org> Tue, 29 Apr 2003 08:10:17 -0500

View File

@ -132,7 +132,7 @@ class MaildirRepository(BaseRepository):
retval.append(folder.Maildir.MaildirFolder(self.root, foldername, retval.append(folder.Maildir.MaildirFolder(self.root, foldername,
self.getsep(), self, self.accountname)) self.getsep(), self, self.accountname))
if self.getsep() == '/': if self.getsep() == '/' and dirname != '.':
# Check sub-directories for folders. # Check sub-directories for folders.
retval.extend(self._getfolders_scandir(root, foldername)) retval.extend(self._getfolders_scandir(root, foldername))
self.debug("_GETFOLDERS_SCANDIR RETURNING %s" % \ self.debug("_GETFOLDERS_SCANDIR RETURNING %s" % \