mirror of
https://git.code.sf.net/p/archivemail/code
synced 2025-03-12 07:42:50 +00:00
Kindly shutdown IMAP connection when doing a --dry-run, too.
This commit is contained in:
parent
b8b64804c9
commit
27ca6547c5
1 changed files with 2 additions and 2 deletions
|
@ -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 ###############
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue