From 2288c0d37aa7f5adec7a24d9070e00362263bce0 Mon Sep 17 00:00:00 2001 From: jgoerzen Date: Fri, 18 Apr 2003 08:14:45 +0100 Subject: [PATCH] /offlineimap/head: changeset 447 Added the ability to use the top level of a Maildir as folder named ".". Useful for generating Maildir trees for a Courier server. --- offlineimap/head/debian/changelog | 7 +++++++ offlineimap/head/offlineimap/repository/Maildir.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/offlineimap/head/debian/changelog b/offlineimap/head/debian/changelog index db48838..9ed9b6f 100644 --- a/offlineimap/head/debian/changelog +++ b/offlineimap/head/debian/changelog @@ -1,3 +1,10 @@ +offlineimap (3.99.14) unstable; urgency=low + + * Added the ability to use the top level of a Maildir as folder named + ".". Useful for generating Maildir trees for a Courier server. + + -- John Goerzen Thu, 17 Apr 2003 21:13:27 -0500 + offlineimap (3.99.13) unstable; urgency=low * Fixed password prompting for non-Curses UIs. diff --git a/offlineimap/head/offlineimap/repository/Maildir.py b/offlineimap/head/offlineimap/repository/Maildir.py index 268b70a..95efa44 100644 --- a/offlineimap/head/offlineimap/repository/Maildir.py +++ b/offlineimap/head/offlineimap/repository/Maildir.py @@ -106,7 +106,7 @@ class MaildirRepository(BaseRepository): self.debug(" toppath = %s" % toppath) # Iterate over directories in top. - for dirname in os.listdir(toppath): + for dirname in os.listdir(toppath) + ['.']: self.debug(" *** top of loop") self.debug(" dirname = %s" % dirname) if dirname in ['cur', 'new', 'tmp', 'offlineimap.uidvalidity']: