From 8ec37e4f4203b2cdd0b58fb5c6b251153f72abb4 Mon Sep 17 00:00:00 2001 From: Emanuel Haupt Date: Fri, 19 Feb 2021 15:14:10 +0000 Subject: [PATCH] Resurrect and update mail/cleanup-maildir to 0.3.1. This application has now been ported to Python 3. --- MOVED | 1 - mail/Makefile | 1 + mail/cleanup-maildir/Makefile | 32 ++++++++++++++++++++++++++++++++ mail/cleanup-maildir/distinfo | 3 +++ mail/cleanup-maildir/pkg-descr | 5 +++++ 5 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 mail/cleanup-maildir/Makefile create mode 100644 mail/cleanup-maildir/distinfo create mode 100644 mail/cleanup-maildir/pkg-descr diff --git a/MOVED b/MOVED index 1c76099f0be9..5d4cafecc6ee 100644 --- a/MOVED +++ b/MOVED @@ -15502,7 +15502,6 @@ lang/julia06|lang/julia10|2020-09-19|Has expired: Uses deprecated version of pyt lang/julia07|lang/julia10|2020-09-19|Has expired: Uses deprecated version of python lang/julia11||2020-09-19|Has expired: Uses deprecated version of python lang/tinypy||2020-09-19|Has expired: Uses deprecated version of python -mail/cleanup-maildir||2020-09-19|Has expired: Uses deprecated version of python mail/courier-pythonfilter||2020-09-19|Has expired: Uses deprecated version of python mail/muttils||2020-09-19|Has expired: Uses deprecated version of python mail/nohtml||2020-09-19|Has expired: Uses deprecated version of python diff --git a/mail/Makefile b/mail/Makefile index 4114a494a118..963c8d257faa 100644 --- a/mail/Makefile +++ b/mail/Makefile @@ -68,6 +68,7 @@ SUBDIR += claws-mail-tnef_parse SUBDIR += claws-mail-vcalendar SUBDIR += clawsker + SUBDIR += cleanup-maildir SUBDIR += cone SUBDIR += coolmail SUBDIR += courier diff --git a/mail/cleanup-maildir/Makefile b/mail/cleanup-maildir/Makefile new file mode 100644 index 000000000000..1a2ff42ca492 --- /dev/null +++ b/mail/cleanup-maildir/Makefile @@ -0,0 +1,32 @@ +# Created by: Emanuel Haupt +# $FreeBSD$ + +PORTNAME= cleanup-maildir +PORTVERSION= 0.3.1 +DISTVERSIONPREFIX= v +CATEGORIES= mail python + +MAINTAINER= ehaupt@FreeBSD.org +COMMENT= Script for cleaning up mails in Maildir folders based on arival date + +LICENSE= AS-IS +LICENSE_NAME= AS-IS +LICENSE_FILE= ${WRKSRC}/LICENSE +LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pygraph>=0.2.1:graphics/py-pygraph@${PY_FLAVOR} + +USES= python:3.6+ shebangfix +USE_GITHUB= yes +GH_ACCOUNT= ehaupt +SHEBANG_FILES= cleanup-maildir.py +NO_ARCH= yes +NO_BUILD= yes + +PLIST_FILES= bin/cleanup-maildir + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/cleanup-maildir.py \ + ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + +.include diff --git a/mail/cleanup-maildir/distinfo b/mail/cleanup-maildir/distinfo new file mode 100644 index 000000000000..6001a3a46ace --- /dev/null +++ b/mail/cleanup-maildir/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1613746863 +SHA256 (ehaupt-cleanup-maildir-v0.3.1_GH0.tar.gz) = b34946750417e0464db346fc5de22bd33a1dab2d7efa24b6d72148e160ef52ed +SIZE (ehaupt-cleanup-maildir-v0.3.1_GH0.tar.gz) = 7075 diff --git a/mail/cleanup-maildir/pkg-descr b/mail/cleanup-maildir/pkg-descr new file mode 100644 index 000000000000..9929521afb1c --- /dev/null +++ b/mail/cleanup-maildir/pkg-descr @@ -0,0 +1,5 @@ +This is a script for cleaning up and archiving mails in Maildir folders based on +the date the mail was received. + +The script supports thread detection and can distinguish between read and +partially read threads.