From: mmj Date: Thu, 27 Sep 2007 07:49:57 +0000 (+1000) Subject: nolistsubsemail tunable for disabling +list X-Git-Tag: RELEASE_1_2_16~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a98afd13bdb2ad2962bb7e683cb9baee74e34ba4;p=thirdparty%2Fmlmmj.git nolistsubsemail tunable for disabling +list --- diff --git a/TUNABLES b/TUNABLES index 46366bb9..5bd14c35 100644 --- a/TUNABLES +++ b/TUNABLES @@ -192,3 +192,8 @@ to specify several entries (one pr. line), it's marked "list". If this is set, no reject notifications caused by violation of maxmailsize will be sent. + + ยท nolistsubsemail (boolean) + + If this is set, the LISTNAME+list@ functionality for requesting an + email with the subscribers for owner is disabled. diff --git a/src/listcontrol.c b/src/listcontrol.c index d47a10ca..ee2e0ec7 100644 --- a/src/listcontrol.c +++ b/src/listcontrol.c @@ -711,6 +711,8 @@ int listcontrol(struct email_container *fromemails, const char *listdir, /* listname+list@domain.tld */ case CTRL_LIST: + if(statctrl(listdir, "nolistsubsemail")) + return -1; owner_idx = -1; owners = ctrlvalues(listdir, "owner"); for(i = 0; i < owners->count; i++) {