Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Oct 2021 07:55:03 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: 3dd9fc88c51d - main - mail/mlmmj: permit a static list of always allowed senders
Message-ID:  <202110210755.19L7t396040121@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=3dd9fc88c51ded61d200eab2341b5dfd796509da

commit 3dd9fc88c51ded61d200eab2341b5dfd796509da
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2021-10-21 07:53:17 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2021-10-21 07:55:02 +0000

    mail/mlmmj: permit a static list of always allowed senders
---
 mail/mlmmj/Makefile              |  2 +-
 mail/mlmmj/files/patch-send-list | 29 +++++++++++++++++++++++++++++
 2 files changed, 30 insertions(+), 1 deletion(-)

diff --git a/mail/mlmmj/Makefile b/mail/mlmmj/Makefile
index 1797d99b8a2f..8d75ef9c50dd 100644
--- a/mail/mlmmj/Makefile
+++ b/mail/mlmmj/Makefile
@@ -2,7 +2,7 @@
 
 PORTNAME=	mlmmj
 PORTVERSION=	1.3.0
-PORTREVISION=	7
+PORTREVISION=	8
 CATEGORIES=	mail
 MASTER_SITES=	http://mlmmj.org/releases/
 
diff --git a/mail/mlmmj/files/patch-send-list b/mail/mlmmj/files/patch-send-list
new file mode 100644
index 000000000000..bcaaf118d975
--- /dev/null
+++ b/mail/mlmmj/files/patch-send-list
@@ -0,0 +1,29 @@
+diff --git src/mlmmj-process.c src/mlmmj-process.c
+index 82e4d04..d324d18 100644
+--- src/mlmmj-process.c
++++ src/mlmmj-process.c
+@@ -478,6 +478,7 @@ int main(int argc, char **argv)
+ 	struct email_container rpemails = { 0, NULL };
+ 	struct email_container dtemails = { 0, NULL };
+ 	struct strlist *access_rules = NULL;
++	struct strlist *list_rules = NULL;
+ 	struct strlist *delheaders = NULL;
+ 	struct strlist allheaders;
+ 	struct strlist *listaddrs = NULL;
+@@ -1027,6 +1028,16 @@ int main(int argc, char **argv)
+ 		}
+ 	}
+ 
++	list_rules = ctrlvalues(listdir, "send");
++	if (list_rules != NULL) {
++		for (i = 0; i < list_rules->count; i++) {
++			if (strcasecmp(posteraddr, list_rules->strs[i]) == 0) {
++				send = 1;
++				break;
++			}
++		}
++	}
++
+ 	subonlypost = statctrl(listdir, "subonlypost");
+ 	modonlypost = statctrl(listdir, "modonlypost");
+ 	modnonsubposts = statctrl(listdir, "modnonsubposts");



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