archivemail is a tool written in python(1) for archiving and compressing old email in mailboxes. By default it will read the mailbox MAILBOX, moving messages that are older that the specified number of days (180 by default) to a mbox-format mailbox in the same directory that is compressed with gzip(1). archivemail supports reading IMAP, Maildir, MH and mbox-format mailboxes, but it will always write archive files to mbox-format mailboxes that are compressed with gzip(1) ok alek@
13 lines
552 B
Plaintext
13 lines
552 B
Plaintext
$OpenBSD: patch-archivemail,v 1.1.1.1 2005/04/08 20:23:43 msf Exp $
|
|
--- archivemail.orig Fri Apr 8 16:04:38 2005
|
|
+++ archivemail Fri Apr 8 16:05:10 2005
|
|
@@ -757,7 +757,7 @@ def add_status_headers(message):
|
|
|
|
# files in the maildir 'cur' directory are no longer new,
|
|
# they are the same as messages with 'Status: O' headers in mbox
|
|
- (None, last_dir) = os.path.split(os.path.dirname(message.fp.name))
|
|
+ (ignoreme, last_dir) = os.path.split(os.path.dirname(message.fp.name))
|
|
if last_dir == "cur":
|
|
status = status + "O"
|
|
|