From c0552fcd0609e58aa3e9fb59508ee6fac966824b Mon Sep 17 00:00:00 2001 From: Nikolaus Schulz Date: Fri, 2 Nov 2007 21:53:20 +0000 Subject: With IMAP no IdentityCache object was initialized, causing a crash if --warn-duplicates was used. Closes: Debian bug #434786. --- CHANGELOG | 2 ++ archivemail.py | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index b2915fc..ca60e6b 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -22,6 +22,8 @@ Version 0.7.1 - UNRELEASED * Expand tilde in argument of long option --pwfile. (Thanks Christian Brabandt) Closes: Debian bug #434813 * archivemail now accepts --days=0 + * Fixed crash if --warn-duplicate is used with IMAP (Thanks Christian + Brabandt) Closes: Debian bug #434786 (the Debian package already has a fix) Version 0.7.0 - 2 November 2006 * Fixed long options --filter-append and --pwfile to accept their arguments. diff --git a/archivemail.py b/archivemail.py index 29fbdf2..c8bafbb 100755 --- a/archivemail.py +++ b/archivemail.py @@ -1331,6 +1331,7 @@ def _archive_imap(mailbox_name, final_archive_name): archive = None stats = Stats(mailbox_name, final_archive_name) + cache = IdentityCache(mailbox_name) imap_str = mailbox_name[mailbox_name.find('://') + 3:] imap_filter = build_imap_filter() vprint("imap filter: '%s'" % imap_filter) -- cgit v1.2.3