From 711eb2ab5c5262c4027a07ba31cd424b2caf7e23 Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Wed, 21 Nov 2001 17:19:17 +0000 Subject: GetConfigInfo(): Describe how the nonmember match rules can contain regular expressions, and provide a link to Python's re module documentation. --- Mailman/Gui/Privacy.py | 37 ++++++++++++++++++++++++++++--------- 1 file changed, 28 insertions(+), 9 deletions(-) diff --git a/Mailman/Gui/Privacy.py b/Mailman/Gui/Privacy.py index 8ff37bd1a..f34a30b3e 100644 --- a/Mailman/Gui/Privacy.py +++ b/Mailman/Gui/Privacy.py @@ -160,7 +160,16 @@ class Privacy: posting from a non-member who is not explicitly accepted, rejected, or discarded, will have their posting filtered by the general - non-member rules."""), + non-member rules. + +

In the text boxes below, add one address per line; start the + line with a ^ character to designate a Python regular expression. When entering backslashes, do so + as if you were using Python raw strings (i.e. you generally just + use a single backslash). + +

Note that non-regexp matches are always done first."""), _("General sender filters"), @@ -182,23 +191,27 @@ class Privacy: membership management screens.""")), - ('accept_these_nonmembers', mm_cfg.EmailList, (10, WIDTH), 1, + ('accept_these_nonmembers', mm_cfg.EmailListEx, (10, WIDTH), 1, _("""List of non-member addresses whose postings should be automatically accepted."""), _("""Postings from any of these non-members will be automatically - accepted with no further moderation applied.""")), + accepted with no further moderation applied. Add member + addresses one per line; start the line with a ^ character to + designate a regular expression match.""")), - ('hold_these_nonmembers', mm_cfg.EmailList, (10, WIDTH), 1, + ('hold_these_nonmembers', mm_cfg.EmailListEx, (10, WIDTH), 1, _("""List of non-member addresses whose postings will be immediately held for moderation."""), _("""Postings from any of these non-members will be immediately and automatically held for moderation by the list moderators. The sender will receive a notification message which will allow - them to cancel their held message.""")), + them to cancel their held message. Add member addresses one per + line; start the line with a ^ character to designate a regular + expression match.""")), - ('reject_these_nonmembers', mm_cfg.EmailList, (10, WIDTH), 1, + ('reject_these_nonmembers', mm_cfg.EmailListEx, (10, WIDTH), 1, _("""List of non-member addresses whose postings will be automatically rejected."""), @@ -208,9 +221,12 @@ class Privacy: option is not appropriate for known spam senders; their messages should be automatically discarded.""")), + >automatically discarded. - ('discard_these_nonmembers', mm_cfg.EmailList, (10, WIDTH), 1, +

Add member addresses one per line; start the line with a ^ + character to designate a regular expression match.""")), + + ('discard_these_nonmembers', mm_cfg.EmailListEx, (10, WIDTH), 1, _("""List of non-member addresses whose postings will be automatically discarded."""), @@ -219,7 +235,10 @@ class Privacy: further processing or notification. The sender will not receive a notification or a bounce, however the list moderators can optionally receive copies of auto-discarded messages..""")), + >receive copies of auto-discarded messages.. + +

Add member addresses one per line; start the line with a ^ + character to designate a regular expression match.""")), ('generic_nonmember_action', mm_cfg.Radio, (_('Accept'), _('Hold'), _('Reject'), _('Discard')), 0, -- cgit v1.3.1