diff options
author | Nikolaus Schulz <microschulz@web.de> | 2007-11-07 21:10:08 +0000 |
---|---|---|
committer | Nikolaus Schulz <microschulz@web.de> | 2007-11-07 21:10:08 +0000 |
commit | d5cb3dad610a1991856623bb1b61d8bb8fd362b3 (patch) | |
tree | d6b86392cf6bdaa415a1f471f11d68fc95f2e526 | |
parent | 8596d68092065ca8793cdf59c8af37b1eb88e9a5 (diff) | |
download | archivemail-d5cb3dad610a1991856623bb1b61d8bb8fd362b3.tar.gz archivemail-d5cb3dad610a1991856623bb1b61d8bb8fd362b3.tar.bz2 archivemail-d5cb3dad610a1991856623bb1b61d8bb8fd362b3.zip |
IMAP: if selecting a mailbox fails with both the original path name and with
replaced path delimiters, report failure for the original path.
-rwxr-xr-x | archivemail.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archivemail.py b/archivemail.py index 019bada..f839def 100755 --- a/archivemail.py +++ b/archivemail.py @@ -1364,8 +1364,8 @@ def _archive_imap(mailbox_name, final_archive_name): if result == 'OK': vprint("successfully selected imap folder %s" % imap_folder) else: - unexpected_error("cannot select imap folder; " - "server says '%s'" % response[0]) + # Report original mailbox path. + unexpected_error(errmsg) # response is e.g. ['1016'] for 1016 messages in folder total_msg_count = int(response[0]) vprint("folder has %d message(s)" % total_msg_count) |