Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Jul 2021 12:46:30 GMT
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 8094daae8ab3 - main - www/hypermail: customize email file format
Message-ID:  <202107061246.166CkUTH031050@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bapt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8094daae8ab3c989640202a494425e507f1e1516

commit 8094daae8ab3c989640202a494425e507f1e1516
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2021-07-06 12:40:32 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107061246.166CkUTH031050>