From nobody Mon May 23 19:01:44 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 7EFED1B3C8D0; Mon, 23 May 2022 19:01:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4L6RWr3BSkz3n0W; Mon, 23 May 2022 19:01:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653332504; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=m+nmR9ysHQZkj8VFhHTQCMxbRVA+4Htjpm82YwpF5/U=; b=N9UulfYg3pudhrW1phR1sCl6glsGhcVLzvnkbbTGWf21FUunREjzrwiDbugEtrcrgD2Oz9 G7JtmVELe6uDoMXVnJU+AIujhJiUfbhpNegZqAudHDpVj0YwCZBgjIlkgRugYMiyHREISo RCuOXGyBX7xhE/nL/3k/4aYBJlGDOl5ihXhU5rNbUAuyIZGQIBMNoayQMH0NNLkIC/lNtO 5eozOt88RdtIU2/TIIJDwZqI6OkgSqKa4ZTAn4FuaTUVxEZAF9BZ1zY9WC5an7j6BJSw9J IqAw98fePw0eGDDoYVfcPcPIbNfVzSRJ+BiD/sP48qi6EK5ojvFosMhqRzzdOg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4F130156CE; Mon, 23 May 2022 19:01:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 24NJ1iVi040922; Mon, 23 May 2022 19:01:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 24NJ1iuI040921; Mon, 23 May 2022 19:01:44 GMT (envelope-from git) Date: Mon, 23 May 2022 19:01:44 GMT Message-Id: <202205231901.24NJ1iuI040921@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Tilman Keskinoz Subject: git: 19ffad2d7622 - main - mail/mail-expire: Add new port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: arved X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 19ffad2d7622a313477fbe96f2d026a389d7a986 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653332504; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=m+nmR9ysHQZkj8VFhHTQCMxbRVA+4Htjpm82YwpF5/U=; b=nhvptFb7cZDoxWV+P62XLfeWJam4pGMo1HExWVtA9Y3UvsUhSMu0izuKrLdWXwfZCzrMqm 3VtJI857KWSJYGV2mgkwl379dLtH9ERcA0g2qyQvYmhimiN1F2Z4Tn26VqgoZBXYQKEdZE W3YVgD7+33pBcrIofxmetBvQR446dtEK3U9fVkk6KR4wE5+EnknqQumG56LLOHz/V2hdzg hhZvlDjrBZG5Vfwixn6PExDaRw3aE4NnP0s2BDFIUg3rxn0rpvo93Lr0UoAHlSbh5y+Fww PBNsce+2RVLBqhsuzmIdZ2U/0t0azEQmG3oVubBxm1iF/3yNptRgTixCtaJsQg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1653332504; a=rsa-sha256; cv=none; b=Gu3SlIyn4cOdXS7QyB3SOD1mKtgYPrsr7Pu0SKMGBcHYuMRDYTcQAN+YimOS8BUHMPrPs7 vs9D9qJ/Zzjij0GuBGuPFkCkZUXlotFjCUhrFMRlCcc9jlptm8p/KjeGYpHw88CoWRMGdZ w3rlGrvMwlIk0g/1E9zgFbw+kEO2XDrwYDsyNdIRZ2iBS4zgK+9kU9m2R2dmddfluj7bPU SsPNAE7clXldw2RE9mYszs0JTB/kRUSV6qmL3F9ZWv6xuGFGf5LhEjnkRZupvWXXwcaX/l P6maGeuUptJthxbRi+fJ9FJxQb8uZcBQXxIKPwonL4Q6c1NMuLmQnT87xb+r4g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by arved: URL: https://cgit.FreeBSD.org/ports/commit/?id=19ffad2d7622a313477fbe96f2d026a389d7a986 commit 19ffad2d7622a313477fbe96f2d026a389d7a986 Author: Tilman Keskinoz AuthorDate: 2022-05-23 19:01:24 +0000 Commit: Tilman Keskinoz CommitDate: 2022-05-23 19:01:24 +0000 mail/mail-expire: Add new port This utility expires old mails from mbox and maildir files. Its functionality is similar to mail/archivemail which was removed in 2020 --- mail/Makefile | 1 + mail/mail-expire/Makefile | 26 ++++++++++++++++++++++++++ mail/mail-expire/distinfo | 3 +++ mail/mail-expire/pkg-descr | 13 +++++++++++++ 4 files changed, 43 insertions(+) diff --git a/mail/Makefile b/mail/Makefile index 7b574900577b..3cbbde67242d 100644 --- a/mail/Makefile +++ b/mail/Makefile @@ -190,6 +190,7 @@ SUBDIR += lmtp2nntp SUBDIR += lookout SUBDIR += lurker + SUBDIR += mail-expire SUBDIR += mail2sms SUBDIR += mailagent SUBDIR += maildrop diff --git a/mail/mail-expire/Makefile b/mail/mail-expire/Makefile new file mode 100644 index 000000000000..022ed0bc5083 --- /dev/null +++ b/mail/mail-expire/Makefile @@ -0,0 +1,26 @@ +PORTNAME= mail-expire +PORTVERSION= 0.9.1 +CATEGORIES= mail +MASTER_SITES= DEBIAN +DISTNAME= ${PORTNAME}_${PORTVERSION} + +MAINTAINER= arved@FreeBSD.org +COMMENT= Expire old mails from mailboxes + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/COPYRIGHT + +RUN_DEPENDS= p5-Mail-Mbox-MessageParser>=0:mail/p5-Mail-Mbox-MessageParser + +USES= gmake perl5 shebangfix tar:xz + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} +NO_ARCH= yes +SHEBANG_FILES= mail-expire +PLIST_FILES= bin/mail-expire ${MANPREFIX}/man/man1/mail-expire.1.gz + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/mail-expire ${STAGEDIR}${PREFIX}/bin/ + ${INSTALL_MAN} ${WRKSRC}/mail-expire.1 ${STAGEDIR}${MANPREFIX}/man/man1 + +.include diff --git a/mail/mail-expire/distinfo b/mail/mail-expire/distinfo new file mode 100644 index 000000000000..9919cfc21b9d --- /dev/null +++ b/mail/mail-expire/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1653337952 +SHA256 (mail-expire_0.9.1.tar.xz) = 5adc6adbea455556cff1bb3128a973781d75200573f24c17a0110b61ceecac41 +SIZE (mail-expire_0.9.1.tar.xz) = 9828 diff --git a/mail/mail-expire/pkg-descr b/mail/mail-expire/pkg-descr new file mode 100644 index 000000000000..a9666326c532 --- /dev/null +++ b/mail/mail-expire/pkg-descr @@ -0,0 +1,13 @@ +mail-expire is a small utility which only purpose is to help on keeping the +size of multiple mail folders as small as needed (by removing outdated +messages). + +Maildir and Mailbox formats are supported for input, both types are mentioned +interchangeably in this manual page. Output goes to Mailbox files. + +The old messages are compressed with gzip or xz and stored in the file with +the name following the pattern MBOXNAME.MONTH_YEAR.gz (or similar). The +reference time for the output filename is calculated from the current time +minus number of days specified in the first parameter. + +WWW: https://salsa.debian.org/blade/mail-expire