1
0
Fork 0
mirror of https://git.code.sf.net/p/archivemail/code synced 2025-01-03 05:34:58 +00:00

IMAP: if selecting a mailbox fails with both the original path name and with

replaced path delimiters, report failure for the original path.
This commit is contained in:
Nikolaus Schulz 2007-11-07 21:10:08 +00:00
parent 8596d68092
commit d5cb3dad61

View file

@ -1364,8 +1364,8 @@ def _archive_imap(mailbox_name, final_archive_name):
if result == 'OK': if result == 'OK':
vprint("successfully selected imap folder %s" % imap_folder) vprint("successfully selected imap folder %s" % imap_folder)
else: else:
unexpected_error("cannot select imap folder; " # Report original mailbox path.
"server says '%s'" % response[0]) unexpected_error(errmsg)
# response is e.g. ['1016'] for 1016 messages in folder # response is e.g. ['1016'] for 1016 messages in folder
total_msg_count = int(response[0]) total_msg_count = int(response[0])
vprint("folder has %d message(s)" % total_msg_count) vprint("folder has %d message(s)" % total_msg_count)