diff options
author | Nikolaus Schulz <microschulz@web.de> | 2006-10-11 19:28:36 +0000 |
---|---|---|
committer | Nikolaus Schulz <microschulz@web.de> | 2006-10-11 19:28:36 +0000 |
commit | 27ca6547c581b9c4a31ed6035e819cede31d0684 (patch) | |
tree | d60f42f083a3bbba7b72300ce6fa2df778a88a7f | |
parent | b8b64804c947a5cee5d3676d1c733c495c66fbc9 (diff) | |
download | archivemail-27ca6547c581b9c4a31ed6035e819cede31d0684.tar.gz archivemail-27ca6547c581b9c4a31ed6035e819cede31d0684.tar.bz2 archivemail-27ca6547c581b9c4a31ed6035e819cede31d0684.zip |
Kindly shutdown IMAP connection when doing a --dry-run, too.
-rwxr-xr-x | archivemail.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archivemail.py b/archivemail.py index 2d8330d..656b179 100755 --- a/archivemail.py +++ b/archivemail.py @@ -1297,8 +1297,8 @@ def _archive_imap(mailbox_name, final_archive_name): for i in range(0, len(message_list), max_delete): imap_srv.store(string.join(message_list[i:i+max_delete], ','), '+FLAGS.SILENT', '\\Deleted') - imap_srv.close() - imap_srv.logout() + imap_srv.close() + imap_srv.logout() ############### misc functions ############### |