mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-28 10:08:24 +00:00
mail/mlmmj: permit a static list of always allowed senders
This commit is contained in:
parent
bbee7e1392
commit
3dd9fc88c5
@ -2,7 +2,7 @@
|
||||
|
||||
PORTNAME= mlmmj
|
||||
PORTVERSION= 1.3.0
|
||||
PORTREVISION= 7
|
||||
PORTREVISION= 8
|
||||
CATEGORIES= mail
|
||||
MASTER_SITES= http://mlmmj.org/releases/
|
||||
|
||||
|
29
mail/mlmmj/files/patch-send-list
Normal file
29
mail/mlmmj/files/patch-send-list
Normal file
@ -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");
|
Loading…
Reference in New Issue
Block a user