/offlineimap/head: changeset 223
First stab at fixing nested mailbox bug
This commit is contained in:
parent
47b2af5c0d
commit
6c1d5a0d27
@ -119,13 +119,11 @@ class MaildirRepository(BaseRepository):
|
||||
self.debug(" skipping this entry (not a directory)")
|
||||
# Not a directory -- not a folder.
|
||||
continue
|
||||
if not (os.path.isdir(os.path.join(fullname, 'cur')) and
|
||||
if (os.path.isdir(os.path.join(fullname, 'cur')) and
|
||||
os.path.isdir(os.path.join(fullname, 'new')) and
|
||||
os.path.isdir(os.path.join(fullname, 'tmp'))):
|
||||
# Doesn't have maildir stuff -- not a folder.
|
||||
self.debug(" skipping this entry (doesn't have cur, new, tmp)")
|
||||
continue
|
||||
|
||||
# This directory has maildir stuff -- process
|
||||
self.debug(" This is a maildir folder.")
|
||||
foldername = dirname
|
||||
if extension != None:
|
||||
foldername = os.path.join(extension, dirname)
|
||||
|
Loading…
Reference in New Issue
Block a user