From owner-dev-commits-ports-all@freebsd.org Tue Jul 6 12:46:30 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id ADE87657175; Tue, 6 Jul 2021 12:46:30 +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 4GK2P22fJ2z4SXf; Tue, 6 Jul 2021 12:46:30 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 4402319A73; Tue, 6 Jul 2021 12:46:30 +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 166CkUpO031051; Tue, 6 Jul 2021 12:46:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 166CkUTH031050; Tue, 6 Jul 2021 12:46:30 GMT (envelope-from git) Date: Tue, 6 Jul 2021 12:46:30 GMT Message-Id: <202107061246.166CkUTH031050@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Baptiste Daroussin Subject: git: 8094daae8ab3 - main - www/hypermail: customize email file format MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bapt X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8094daae8ab3c989640202a494425e507f1e1516 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jul 2021 12:46:30 -0000 The branch main has been updated by bapt: URL: https://cgit.FreeBSD.org/ports/commit/?id=8094daae8ab3c989640202a494425e507f1e1516 commit 8094daae8ab3c989640202a494425e507f1e1516 Author: Baptiste Daroussin AuthorDate: 2021-07-06 12:40:32 +0000 Commit: Baptiste Daroussin CommitDate: 2021-07-06 12:46:03 +0000 www/hypermail: customize email file format Update the patch allowing to customize file names to also cover email text --- www/hypermail/Makefile | 2 +- www/hypermail/files/patch-message_pattern | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/www/hypermail/Makefile b/www/hypermail/Makefile index c4e7700a519b..37352918fe67 100644 --- a/www/hypermail/Makefile +++ b/www/hypermail/Makefile @@ -3,7 +3,7 @@ PORTNAME= hypermail PORTVERSION= 2.4.0 DISTVERSIONPREFIX= v -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= www mail MAINTAINER= bapt@FreeBSD.org diff --git a/www/hypermail/files/patch-message_pattern b/www/hypermail/files/patch-message_pattern index 1503f3ee062a..894d6285a6f9 100644 --- a/www/hypermail/files/patch-message_pattern +++ b/www/hypermail/files/patch-message_pattern @@ -11,6 +11,19 @@ index cdfa67f..d35d187 100644 return buffer; #ifdef HAVE_LIBFNV } +diff --git src/parse.c src/parse.c +index 36da5df..77b173d 100644 +--- src/parse.c ++++ src/parse.c +@@ -1481,7 +1481,7 @@ static void write_txt_file(struct emailinfo *emp, struct Push *raw_text_buf) + char *txt_filename; + char *p = PUSH_STRING(*raw_text_buf); + char tmp_buf[32]; +- sprintf(tmp_buf, "%.4d", emp->msgnum); ++ sprintf (tmp_buf, set_message_pattern ? set_message_pattern : "%.4d" , emp->msgnum); + txt_filename = htmlfilename(tmp_buf, emp, set_txtsuffix); + if ((!emp->is_deleted + || ((emp->is_deleted & (FILTERED_DELETE | FILTERED_OLD | FILTERED_NEW diff --git src/setup.c src/setup.c index 3735391..0289a20 100644 --- src/setup.c