When this file is present, only people who are subscribed to the list,
are allowed to post to it. The check is made against the "From:" header.
+ · modnonsubposts (boolean)
+
+ When this file is present, all postings from people who are not subscribed
+ to the list will be moderated.
+
· prefix (normal)
The prefix for the Subject: line of mails to the list. This will alter the
{
int i, j, opt, noprocess = 0, moderated = 0;
int hdrfd, footfd, rawmailfd, donemailfd;
- int subonlypost = 0, addrtocc = 1, intocc = 0;
+ int subonlypost = 0, addrtocc = 1, intocc = 0, modnonsubposts = 0;
int notoccdenymails = 0, noaccessdenymails = 0, nosubonlydenymails = 0;
char *listdir = NULL, *mailfile = NULL, *headerfilename = NULL;
char *footerfilename = NULL, *donemailname = NULL;
exit(EXIT_FAILURE);
}
- nosubonlydenymails = statctrl(listdir, "nosubonlydenymails");
-
subonlypost = statctrl(listdir, "subonlypost");
if(subonlypost) {
/* Don't send a mail about denial to the list, but silently
exit(EXIT_SUCCESS);
}
if(is_subbed(listdir, fromemails.emaillist[0]) != 0) {
+ modnonsubposts = statctrl(listdir,
+ "modnonsubposts");
+ if(modnonsubposts) {
+ moderated = 1;
+ goto startaccess;
+ }
+
+ nosubonlydenymails = statctrl(listdir,
+ "nosubonlydenymails");
+
if(nosubonlydenymails) {
log_error(LOG_ARGS, "Discarding %s because"
" subonlypost and"
}
}
+startaccess:
noaccessdenymails = statctrl(listdir, "noaccessdenymails");
access_rules = ctrlvalues(listdir, "access");