1
0
Fork 0
mirror of https://git.code.sf.net/p/archivemail/code synced 2024-12-22 07:42:55 +00:00

With IMAP no IdentityCache object was initialized, causing a crash if

--warn-duplicates was used.  Closes: Debian bug #434786.
This commit is contained in:
Nikolaus Schulz 2007-11-02 21:53:20 +00:00
parent 3e0288e21b
commit c0552fcd06
2 changed files with 3 additions and 0 deletions

View file

@ -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.

View file

@ -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)