aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolaus Schulz <microschulz@web.de>2007-11-02 21:53:20 +0000
committerNikolaus Schulz <microschulz@web.de>2007-11-02 21:53:20 +0000
commitc0552fcd0609e58aa3e9fb59508ee6fac966824b (patch)
tree3da4c2a3d28225dc80a5ead4e1c9ad053e08e0a7
parent3e0288e21ba639dce871d5623238b4cae450760e (diff)
downloadarchivemail-c0552fcd0609e58aa3e9fb59508ee6fac966824b.tar.gz
archivemail-c0552fcd0609e58aa3e9fb59508ee6fac966824b.tar.bz2
archivemail-c0552fcd0609e58aa3e9fb59508ee6fac966824b.zip
With IMAP no IdentityCache object was initialized, causing a crash if
--warn-duplicates was used. Closes: Debian bug #434786.
-rw-r--r--CHANGELOG2
-rwxr-xr-xarchivemail.py1
2 files changed, 3 insertions, 0 deletions
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)