changeset 659:dcf36865330f

nolistsubsemail tunable for disabling +list
author mmj
date Thu, 27 Sep 2007 17:49:57 +1000
parents 47959df55acd
children c26e97a2207b
files TUNABLES src/listcontrol.c
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/TUNABLES	Thu Aug 02 04:19:45 2007 +1000
+++ b/TUNABLES	Thu Sep 27 17:49:57 2007 +1000
@@ -192,3 +192,8 @@
 
    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.
--- a/src/listcontrol.c	Thu Aug 02 04:19:45 2007 +1000
+++ b/src/listcontrol.c	Thu Sep 27 17:49:57 2007 +1000
@@ -711,6 +711,8 @@
 
 	/* 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++) {