From: Henne Vogelsang <hvogel@opensuse.org>
To: mlmmj@mlmmj.org
Subject: Re: mlmmj-1.2.12-RC1 released
Date: Wed, 06 Sep 2006 16:38:33 +0000 [thread overview]
Message-ID: <20060906163833.GA24085@suse.de> (raw)
In-Reply-To: <34f6b3c998e8d4bb4bd464d07c87532c@mail.n0rd.dk>
[-- Attachment #1: Type: text/plain, Size: 1300 bytes --]
Hi,
On Monday, September 04, 2006 at 21:42:08, Morten K.Poulsen wrote:
> If your patch is not included, please re-send it.
As mm"the king of slack"j did not add my patches from the openSUSE
package i re-send them. 8)
mlmmj-log.patch:
This patch logs the header if a deny rule matches in access control.
So you can actually tell users what they are doing wrong.
mlmmj-send_help-generic.patch
This patch makes send_help more generic. It adds 2 new parameters to
send_help (name/textfile). So you can send other texts than listhelp
with it.
mlmmj-faq.patch
This patch adds the possiblity to send a FAQ of the list. It can be
requested via listname+faq@fqdn. This uses the more generic send_help
function.
mlmmj-nodigestsub.patch
This patch adds a control file to deny digest subscription. Usefull if
you dont want digests and tell users about it. Uses the more generic
send_help.
mlmmj-nonomailsub.patch
This patch adds a control file to deny nomail subscription. Usefull if
you dont want nomail and tell users about it. Uses the more generic
send_help.
Henne
BTW: All lists.opensuse.org lists run on mlmmj since a month or so and
all lists.suse.com lists will follow later this year.
--
Henne Vogelsang, Core Services
"Rules change. The Game remains the same."
- Omar (The Wire)
[-- Attachment #2: mlmmj-log.patch --]
[-- Type: text/x-patch, Size: 352 bytes --]
--- src/mlmmj-process.c
+++ src/mlmmj-process.c
@@ -284,8 +284,8 @@
break;
}
- log_error(LOG_ARGS, "A mail was %s by rule #%d",
- logstr, rule_nr);
+ log_error(LOG_ARGS, "A mail with header \"%s\" was %s by rule #%d \"%s\"",
+ hdrs->strs[i], logstr, rule_nr, rule_ptr);
ret = rule->act;
free_rules(head);
return ret;
[-- Attachment #3: mlmmj-faq.patch --]
[-- Type: text/x-patch, Size: 2891 bytes --]
--- listtexts/Makefile.am
+++ listtexts/Makefile.am
@@ -1,6 +1,6 @@
## 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 \
--- listtexts/Makefile.in
+++ listtexts/Makefile.in
@@ -105,7 +105,7 @@
target_alias = @target_alias@
textlibdir = @textlibdir@
-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 \
--- listtexts/listfaq
+++ listtexts/listfaq
@@ -0,0 +1,4 @@
+Subject: FAQ - Frequently asked questions of the $listaddr$ list.
+
+Sorry no FAQ available yet.
+
--- src/listcontrol.c
+++ src/listcontrol.c
@@ -63,6 +63,7 @@
CTRL_BOUNCES,
CTRL_MODERATE,
CTRL_HELP,
+ CTRL_FAQ,
CTRL_GET,
CTRL_LIST,
CTRL_END /* end marker, must be last */
@@ -92,6 +93,7 @@
{ "bounces", 1 },
{ "moderate", 1 },
{ "help", 0 },
+ { "faq", 0 },
{ "get", 1 },
{ "list", 0 }
};
@@ -628,6 +630,21 @@
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");
--- src/prepstdreply.c
+++ src/prepstdreply.c
@@ -102,6 +102,9 @@
} 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;
[-- Attachment #4: mlmmj-send_help-generic.patch --]
[-- Type: text/x-patch, Size: 1407 bytes --]
--- include/send_help.h
+++ include/send_help.h
@@ -25,6 +25,6 @@
#define SEND_HELP_H
void send_help(const char *listdir, const char *emailaddr,
- const char *mlmmjsend);
+ const char *mlmmjsend, const char *name, const char *textfile);
#endif
--- src/listcontrol.c
+++ src/listcontrol.c
@@ -625,7 +625,7 @@
}
log_oper(listdir, OPLOGFNAME, "%s requested help",
fromemails->emaillist[0]);
- send_help(listdir, fromemails->emaillist[0], mlmmjsend);
+ send_help(listdir, fromemails->emaillist[0], mlmmjsend, "help", "listhelp");
break;
/* listname+get-INDEX@domain.tld */
--- src/send_help.c
+++ src/send_help.c
@@ -43,7 +43,7 @@
#include "memory.h"
void send_help(const char *listdir, const char *emailaddr,
- const char *mlmmjsend)
+ const char *mlmmjsend, const char *name, const char *textfile)
{
char *queuefilename, *listaddr, *listdelim, *listname, *listfqdn;
char *fromaddr;
@@ -56,10 +56,10 @@
fromaddr = concatstr(4, listname, listdelim, "bounces-help@", listfqdn);
myfree(listdelim);
- queuefilename = prepstdreply(listdir, "listhelp", "$listowner$",
+ queuefilename = prepstdreply(listdir, textfile, "$listowner$",
emailaddr, NULL, 0, NULL, NULL);
if(queuefilename == NULL) {
- log_error(LOG_ARGS, "Could not prepare help mail");
+ log_error(LOG_ARGS, "Could not prepare %s mail", name);
exit(EXIT_FAILURE);
}
[-- Attachment #5: mlmmj-nodigestsub.patch --]
[-- Type: text/x-patch, Size: 2529 bytes --]
--- TUNABLES
+++ TUNABLES
@@ -166,3 +166,9 @@
If this file exists, digest mails won't have a text part with a thread
summary.
+
+ � nodigestsub (boolean)
+
+ If this file exists, subscription to the digest version of the mailinglist
+ will be denied. (Usefull if you dont want to allow digests and notify users
+ about it).
--- listtexts/Makefile.am
+++ listtexts/Makefile.am
@@ -3,7 +3,7 @@
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 \
+ sub-confirm-nomail sub-ok sub-ok-digest sub-ok-nomail sub-deny-digest subonlypost \
unsub-confirm unsub-confirm-digest unsub-confirm-nomail unsub-ok \
unsub-ok-digest unsub-ok-nomail listsubs sub-subscribed \
unsub-notsubscribed digest submod-moderator submod-requester
--- listtexts/Makefile.in
+++ listtexts/Makefile.in
@@ -108,7 +108,7 @@
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 \
+ sub-confirm-nomail sub-ok sub-ok-digest sub-ok-nomail sub-deny-digest subonlypost \
unsub-confirm unsub-confirm-digest unsub-confirm-nomail unsub-ok \
unsub-ok-digest unsub-ok-nomail listsubs sub-subscribed \
unsub-notsubscribed digest submod-moderator submod-requester
--- listtexts/sub-deny-digest
+++ listtexts/sub-deny-digest
@@ -0,0 +1,9 @@
+Subject: Denied subscription to the digest of $listaddr$
+
+Your request to subscribe to the digest of the mailinglist
+
+$listaddr$
+
+has been denied. Digests are turned off for this
+mailinglist.
+
--- src/listcontrol.c
+++ src/listcontrol.c
@@ -206,6 +206,13 @@
" Ignoring mail");
return -1;
}
+ if (statctrl(listdir, "nodigestsub")) {
+ errno = 0;
+ log_error(LOG_ARGS, "A subcribe-digest request was denied");
+ send_help(listdir, fromemails->emaillist[0],
+ mlmmjsend, "nodigest", "sub-deny-digest");
+ return -1;
+ }
log_oper(listdir, OPLOGFNAME, "mlmmj-sub: request for digest"
" subscription from %s",
fromemails->emaillist[0]);
[-- Attachment #6: mlmmj-nonomailsub.patch --]
[-- Type: text/x-patch, Size: 2708 bytes --]
--- TUNABLES
+++ TUNABLES
@@ -172,3 +172,9 @@
If this file exists, subscription to the digest version of the mailinglist
will be denied. (Usefull if you dont want to allow digests and notify users
about it).
+
+ � nonomailsub (boolean)
+
+ If this file exists, subscription to the nomail version of the mailinglist
+ will be denied. (Usefull if you dont want to allow nomail and notify users
+ about it).
--- listtexts/Makefile.am
+++ listtexts/Makefile.am
@@ -3,7 +3,7 @@
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 sub-deny-digest subonlypost \
+ sub-confirm-nomail sub-ok sub-ok-digest sub-ok-nomail sub-deny-digest sub-deny-nomail subonlypost \
unsub-confirm unsub-confirm-digest unsub-confirm-nomail unsub-ok \
unsub-ok-digest unsub-ok-nomail listsubs sub-subscribed \
unsub-notsubscribed digest submod-moderator submod-requester
--- listtexts/Makefile.in
+++ listtexts/Makefile.in
@@ -108,7 +108,7 @@
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 sub-deny-digest subonlypost \
+ sub-confirm-nomail sub-ok sub-ok-digest sub-ok-nomail sub-deny-digest sub-deny-nomail subonlypost \
unsub-confirm unsub-confirm-digest unsub-confirm-nomail unsub-ok \
unsub-ok-digest unsub-ok-nomail listsubs sub-subscribed \
unsub-notsubscribed digest submod-moderator submod-requester
--- listtexts/sub-deny-nomail
+++ listtexts/sub-deny-nomail
@@ -0,0 +1,9 @@
+Subject: Denied subscription to the nomail version of $listaddr$
+
+Your request to subscribe to the nomail version of the mailinglist
+
+$listaddr$
+
+has been denied. The nomail version is turned off for this
+mailinglist.
+
--- src/listcontrol.c
+++ src/listcontrol.c
@@ -242,6 +242,13 @@
" Ignoring mail");
return -1;
}
+ if (statctrl(listdir, "nonomailsub")) {
+ errno = 0;
+ log_error(LOG_ARGS, "A subcribe-nomail request was denied");
+ send_help(listdir, fromemails->emaillist[0],
+ mlmmjsend, "nonomail", "sub-deny-nomail");
+ return -1;
+ }
log_oper(listdir, OPLOGFNAME, "mlmmj-sub: request for nomail"
" subscription from %s",
fromemails->emaillist[0]);
next prev parent reply other threads:[~2006-09-06 16:38 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-04 19:42 mlmmj-1.2.12-RC1 released Morten K. Poulsen
2006-09-04 21:02 ` Jakob Hirsch
2006-09-05 6:43 ` Christian Lackas
2006-09-05 17:02 ` Morten K. Poulsen
2006-09-05 17:21 ` Mads Martin Joergensen
2006-09-05 17:24 ` Morten K. Poulsen
2006-09-06 16:38 ` Henne Vogelsang [this message]
2006-09-06 18:22 ` Stefan Reinauer
2006-09-06 19:42 ` Jakob Hirsch
2006-09-06 21:26 ` Morten K. Poulsen
2006-09-06 21:28 ` Mads Martin Joergensen
2006-09-06 21:31 ` Morten K. Poulsen
2006-09-06 21:42 ` Morten K. Poulsen
2006-09-06 22:05 ` Morten K. Poulsen
2006-09-07 10:26 ` Mads Martin Joergensen
2006-09-07 13:03 ` Christoph Wilke
2006-09-07 23:53 ` Sven 'Darkman' Michels
2006-09-11 9:17 ` Jakob Hirsch
2006-09-11 19:04 ` Morten K. Poulsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060906163833.GA24085@suse.de \
--to=hvogel@opensuse.org \
--cc=mlmmj@mlmmj.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.