+ o Add sanity checks to disallow denial mails going to the list
o Implement -d option for mlmmj-maintd to be able to supply it with a directory
containing several listdirs, where mlmmj-maintd then will run maintenance
o Chown option and a fix for mlmmj-make-ml.sh. Thanks Ingo Lameter
}
if(addrtocc && !intocc) {
+ /* Don't send a mail about denial to the list, but silently
+ * discard and exit */
+ if (strncasecmp(listaddress, fromemails.emaillist[0],
+ strlen(listaddress)) == 0) {
+ myfree(listaddr);
+ unlink(donemailname);
+ myfree(donemailname);
+ exit(EXIT_SUCCESS);
+ }
listname = genlistname(listaddr);
listfqdn = genlistfqdn(listaddr);
maildata[0] = "*LSTADDR*";
subonlypost = statctrl(listdir, "subonlypost");
if(subonlypost) {
+ /* Don't send a mail about denial to the list, but silently
+ * discard and exit */
+ if (strncasecmp(listaddress, fromemails.emaillist[0],
+ strlen(listaddress)) == 0) {
+ myfree(listaddr);
+ unlink(donemailname);
+ myfree(donemailname);
+ exit(EXIT_SUCCESS);
+ }
if(is_subbed(listdir, fromemails.emaillist[0]) != 0) {
listname = genlistname(listaddr);
listfqdn = genlistfqdn(listaddr);
access_rules = ctrlvalues(listdir, "access");
if (access_rules) {
+ /* Don't send a mail about denial to the list, but silently
+ * discard and exit */
+ if (strncasecmp(listaddress, fromemails.emaillist[0],
+ strlen(listaddress)) == 0) {
+ myfree(listaddr);
+ unlink(donemailname);
+ myfree(donemailname);
+ exit(EXIT_SUCCESS);
+ }
if (do_access(access_rules, &allheaders) == DENY) {
listname = genlistname(listaddr);
listfqdn = genlistfqdn(listaddr);