+ o Added list FAQ feature (Henne Vogelsang)
o Added support for default list text directory (Henne Vogelsang)
o Fixed a Bourne Shell issue in mlmmj-make-ml.sh (Magnus Naeslund)
o Fixed hostnamestr() for hosts that can't find themselves using
## Process this file with automake to produce Makefile.in
-dist_textlib_DATA = access bounce-probe listhelp moderation notifysub \
+dist_textlib_DATA = access bounce-probe listhelp listfaq moderation notifysub \
notifysub-digest notifysub-nomail notifyunsub notifyunsub-digest \
notifyunsub-nomail notintocc sub-confirm sub-confirm-digest \
sub-confirm-nomail sub-ok sub-ok-digest sub-ok-nomail subonlypost \
--- /dev/null
+Subject: FAQ - Frequently asked questions of the $listaddr$ list.
+
+Sorry no FAQ available yet.
+
--- /dev/null
+Subject: FAQ - Frequently asked questions of the $listaddr$ list.
+
+Sorry no FAQ available yet.
+
--- /dev/null
+Subject: FAQ - Frequently asked questions of the $listaddr$ list.
+
+Sorry no FAQ available yet.
+
--- /dev/null
+Subject: FAQ - Frequently asked questions of the $listaddr$ list.
+
+Sorry no FAQ available yet.
+
--- /dev/null
+Subject: FAQ - Frequently asked questions of the $listaddr$ list.
+
+Sorry no FAQ available yet.
+
--- /dev/null
+Subject: FAQ - Frequently asked questions of the $listaddr$ list.
+
+Sorry no FAQ available yet.
+
--- /dev/null
+Subject: FAQ - Frequently asked questions of the $listaddr$ list.
+
+Sorry no FAQ available yet.
+
CTRL_BOUNCES,
CTRL_MODERATE,
CTRL_HELP,
+ CTRL_FAQ,
CTRL_GET,
CTRL_LIST,
CTRL_END /* end marker, must be last */
{ "bounces", 1 },
{ "moderate", 1 },
{ "help", 0 },
+ { "faq", 0 },
{ "get", 1 },
{ "list", 0 }
};
send_help(listdir, fromemails->emaillist[0], mlmmjsend, "help", "listhelp");
break;
+ /* listname+faq@domain.tld */
+ case CTRL_FAQ:
+ if(!strchr(fromemails->emaillist[0], '@')) {
+ /* Not a valid From: address */
+ errno = 0;
+ log_error(LOG_ARGS, "A faq request was"
+ " sent with an invalid From: header."
+ " Ignoring mail");
+ return -1;
+ }
+ log_oper(listdir, OPLOGFNAME, "%s requested faq",
+ fromemails->emaillist[0]);
+ send_help(listdir, fromemails->emaillist[0], mlmmjsend, "faq", "listfaq");
+ break;
+
/* listname+get-INDEX@domain.tld */
case CTRL_GET:
noget = statctrl(listdir, "noget");
} else if(strcmp(token, "helpaddr") == 0) {
value = concatstr(4, listname, listdelim, "help@", fqdn);
goto concatandreturn;
+ } else if(strcmp(token, "faqaddr") == 0) {
+ value = concatstr(4, listname, listdelim, "faq@", fqdn);
+ goto concatandreturn;
} else if(strcmp(token, "listgetN") == 0) {
value = concatstr(4, listname, listdelim, "get-N@", fqdn);
goto concatandreturn;