From 378619176e09637e5f2b4e17a174961771fc5dd0 Mon Sep 17 00:00:00 2001 From: msf Date: Fri, 8 Apr 2005 20:23:43 +0000 Subject: [PATCH] - initial import of archivemail-0.6.1 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@ --- mail/archivemail/Makefile | 24 ++++++++++++++++++++++ mail/archivemail/distinfo | 4 ++++ mail/archivemail/patches/patch-archivemail | 12 +++++++++++ mail/archivemail/pkg/DESCR | 7 +++++++ mail/archivemail/pkg/PLIST | 3 +++ 5 files changed, 50 insertions(+) create mode 100644 mail/archivemail/Makefile create mode 100644 mail/archivemail/distinfo create mode 100644 mail/archivemail/patches/patch-archivemail create mode 100644 mail/archivemail/pkg/DESCR create mode 100644 mail/archivemail/pkg/PLIST diff --git a/mail/archivemail/Makefile b/mail/archivemail/Makefile new file mode 100644 index 00000000000..e04040e7571 --- /dev/null +++ b/mail/archivemail/Makefile @@ -0,0 +1,24 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2005/04/08 20:23:43 msf Exp $ + +COMMENT= "archive and compress your old email" + +DISTNAME= archivemail-0.6.1 +CATEGORIES= mail + +MAINTAINER= Mathieu Sauve-Frankel + +# GPL +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=archivemail/} + +MODULES= lang/python + +NO_REGRESS= Yes + +PKG_ARCH= * + +.include diff --git a/mail/archivemail/distinfo b/mail/archivemail/distinfo new file mode 100644 index 00000000000..39a6ce93d5f --- /dev/null +++ b/mail/archivemail/distinfo @@ -0,0 +1,4 @@ +MD5 (archivemail-0.6.1.tar.gz) = aaf071effc9576cc14f3b0eee1d2321e +RMD160 (archivemail-0.6.1.tar.gz) = a2ac69e628753bd88041c03550860b3300887c82 +SHA1 (archivemail-0.6.1.tar.gz) = bc39a4192cf6dc375ce6274527a88a88563a3820 +SIZE (archivemail-0.6.1.tar.gz) = 34874 diff --git a/mail/archivemail/patches/patch-archivemail b/mail/archivemail/patches/patch-archivemail new file mode 100644 index 00000000000..abb46e41c5b --- /dev/null +++ b/mail/archivemail/patches/patch-archivemail @@ -0,0 +1,12 @@ +$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" + diff --git a/mail/archivemail/pkg/DESCR b/mail/archivemail/pkg/DESCR new file mode 100644 index 00000000000..67f812394ea --- /dev/null +++ b/mail/archivemail/pkg/DESCR @@ -0,0 +1,7 @@ +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) diff --git a/mail/archivemail/pkg/PLIST b/mail/archivemail/pkg/PLIST new file mode 100644 index 00000000000..159475d46f6 --- /dev/null +++ b/mail/archivemail/pkg/PLIST @@ -0,0 +1,3 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2005/04/08 20:23:43 msf Exp $ +bin/archivemail +@man man/man1/archivemail.1