offlineimap rev 467

"Automatic Subversion Change Mailer" <[email protected]> Tue, 29 Apr 2003 11:30:32 -0500 (CDT)
Newsgroups gmane.mail.imap.offlineimap.subversion
Message-ID <[email protected]>
You are receiving this message because
all commits get sent to this address.

Author: jgoerzen
Date: 2003-04-29 11:30:26 -0500 (Tue, 29 Apr 2003)
New Revision: 467

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

Log:
  * 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.



Diff:
Modified: offlineimap/head/debian/changelog
==============================================================================
--- offlineimap/head/debian/changelog	(original)
+++ offlineimap/head/debian/changelog	2003-04-29 11:30:31.000000000 -0500
@@ -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 <[email protected]>  Tue, 29 Apr 2003 08:10:17 -0500
 

Modified: offlineimap/head/offlineimap/repository/Maildir.py
==============================================================================
--- offlineimap/head/offlineimap/repository/Maildir.py	(original)
+++ offlineimap/head/offlineimap/repository/Maildir.py	2003-04-29 11:30:31.000000000 -0500
@@ -132,7 +132,7 @@
 
                 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" % \