From 27ca6547c581b9c4a31ed6035e819cede31d0684 Mon Sep 17 00:00:00 2001 From: Nikolaus Schulz Date: Wed, 11 Oct 2006 19:28:36 +0000 Subject: Kindly shutdown IMAP connection when doing a --dry-run, too. --- archivemail.py | 4 ++-- 1 file 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 ############### -- cgit v1.2.3