aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xarchivemail.py2
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: