diff options
-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: |