/offlineimap/head: changeset 209

Fixed a stupid braino in the last commit.
This commit is contained in:
jgoerzen 2002-08-08 03:41:52 +01:00
parent cd6b343bb0
commit f086c3ff0a

View File

@ -42,7 +42,7 @@ class MaildirRepository(BaseRepository):
# self.root directory (we'd prefer to raise an error in that case), # self.root directory (we'd prefer to raise an error in that case),
# but will make the (relative) paths underneath it. Need to use # but will make the (relative) paths underneath it. Need to use
# makedirs to support a / separator. # makedirs to support a / separator.
if os.getsep() == '/': if self.getsep() == '/':
for invalid in ['new', 'cur', 'tmp', 'offlineimap.uidvalidity']: for invalid in ['new', 'cur', 'tmp', 'offlineimap.uidvalidity']:
for component in foldername.split('/'): for component in foldername.split('/'):
assert component != invalid, "When using nested folders (/ as a separator in the account config), your folder names may not contain 'new', 'cur', 'tmp', or 'offlineimap.uidvalidity'." assert component != invalid, "When using nested folders (/ as a separator in the account config), your folder names may not contain 'new', 'cur', 'tmp', or 'offlineimap.uidvalidity'."