diff options
author | Nikolaus Schulz <microschulz@web.de> | 2008-04-09 00:22:07 +0000 |
---|---|---|
committer | Nikolaus Schulz <microschulz@web.de> | 2008-04-09 00:22:07 +0000 |
commit | c6cb0b461272818e7afeb6d20035d180309be7b0 (patch) | |
tree | 0c6a1ebb2babd4aee4af9ecc459674d6b50afb06 | |
parent | 415e055a6ec5b4f4d2f520330e6388cae66912c2 (diff) | |
download | archivemail-c6cb0b461272818e7afeb6d20035d180309be7b0.tar.gz archivemail-c6cb0b461272818e7afeb6d20035d180309be7b0.tar.bz2 archivemail-c6cb0b461272818e7afeb6d20035d180309be7b0.zip |
IMAP: imap_guess_mailboxnames: check for NIL delimiter.
Only replace the slash with the server's hierarchy delimiter if the latter
actually exists (is not NIL).
-rwxr-xr-x | archivemail.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archivemail.py b/archivemail.py index 9c7be1c..58eb018 100755 --- a/archivemail.py +++ b/archivemail.py @@ -1617,7 +1617,7 @@ def imap_guess_mailboxnames(srv, mailbox): vprint("IMAP namespace prefix: '%s', hierarchy delimiter: '%s'" % \ (nsprefix, hdelim)) boxnames = [nsprefix + mailbox] - if os.path.sep in mailbox: + if os.path.sep in mailbox and hdelim: mailbox = mailbox.replace(os.path.sep, hdelim) boxnames.append(mailbox) # could have a valid namespace prefix now if nsprefix: |