------------------------------------------------------------
revno: 1052
committer: Mark Sapiro <[email protected]>
branch nick: 2.2
timestamp: Sat 2009-04-18 13:02:57 -0700
message:
Added regular_exclude_ignore option to sibling lists to ignore an
excluded list if the poster isn't a member of the excluded list.
modified:
Mailman/Defaults.py.in
Mailman/Gui/NonDigest.py
Mailman/Handlers/CalcRecips.py
Mailman/Version.py
Mailman/versions.py
NEWS
=== modified file 'Mailman/Defaults.py.in'
--- Mailman/Defaults.py.in 2008-12-23 02:19:44 +0000
+++ Mailman/Defaults.py.in 2009-04-18 20:02:57 +0000
@@ -939,6 +939,7 @@
# Exclude/include (sibling) lists for non-digest delivery.
DEFAULT_REGULAR_EXCLUDE_LISTS = []
DEFAULT_REGULAR_INCLUDE_LISTS = []
+DEFAULT_REGULAR_EXCLUDE_IGNORE = True
ALLOW_CROSS_DOMAIN_SIBLING = False
# This variable controls whether monthly password reminders are sent.
=== modified file 'Mailman/Gui/NonDigest.py'
--- Mailman/Gui/NonDigest.py 2007-11-26 01:32:26 +0000
+++ Mailman/Gui/NonDigest.py 2009-04-18 20:02:57 +0000
@@ -159,6 +159,17 @@
Note also that the site administrator may prohibit cross domain
siblings.""")),
+ ('regular_exclude_ignore', mm_cfg.Toggle, (_('No'), _('Yes')), 0,
+ _("""Ignore regular_exlude_lists of which the poster is not a
+ member."""),
+ _("""If a post is addressed to this list and to one or more of
+ the exclude lists, regular members of those lists will not be
+ sent the post from this list, but if the poster is not a member
+ of an excluded list, the post may not be accepted by that list
+ which leaves the members of that list with no copy of the post.
+ Setting this to Yes ignores any of the exclude lists of which the
+ poster is not a member.""")),
+
('regular_include_lists', mm_cfg.EmailList, (3, WIDTH), 0,
_("""Other mailing lists on this site whose members are
included in the regular (non-digest) delivery if those
=== modified file 'Mailman/Handlers/CalcRecips.py'
--- Mailman/Handlers/CalcRecips.py 2008-03-16 05:09:31 +0000
+++ Mailman/Handlers/CalcRecips.py 2009-04-18 20:02:57 +0000
@@ -179,6 +179,12 @@
syslog('error', 'Exclude list %s is not in the same domain.',
listname)
continue
+ if mlist.regular_exclude_ignore:
+ for sender in msg.get_senders():
+ if slist.isMember(sender):
+ break
+ else:
+ continue
srecips = set([slist.getMemberCPAddress(m)
for m in slist.getRegularMemberKeys()
if slist.getDeliveryStatus(m) == ENABLED])
=== modified file 'Mailman/Version.py'
--- Mailman/Version.py 2009-02-23 22:28:58 +0000
+++ Mailman/Version.py 2009-04-18 20:02:57 +0000
@@ -37,7 +37,7 @@
(REL_LEVEL << 4) | (REL_SERIAL << 0))
# config.pck schema version number
-DATA_FILE_VERSION = 98
+DATA_FILE_VERSION = 99
# qfile/*.db schema version number
QFILE_SCHEMA_VERSION = 3
=== modified file 'Mailman/versions.py'
--- Mailman/versions.py 2008-08-21 21:35:20 +0000
+++ Mailman/versions.py 2009-04-18 20:02:57 +0000
@@ -425,6 +425,8 @@
mm_cfg.DEFAULT_REGULAR_EXCLUDE_LISTS)
add_only_if_missing('regular_include_lists',
mm_cfg.DEFAULT_REGULAR_INCLUDE_LISTS)
+ add_only_if_missing('regular_exclude_ignore',
+ mm_cfg.DEFAULT_REGULAR_EXCLUDE_IGNORE)
=== modified file 'NEWS'
--- NEWS 2009-03-14 22:18:51 +0000
+++ NEWS 2009-04-18 20:02:57 +0000
@@ -8,6 +8,13 @@
New Features
+ - There is a new list attribute regular_exclude_ignore set from mm_cfg.py
+ DEFAULT_REGULAR_EXCLUDE_IGNORE. This defaults to True even though the
+ prior behavior is equivalent to False. A True setting will ignore an
+ exclude list if the poster is not a member of that list. The False
+ setting can result in list members not receiving posts if the nonmember
+ post is not accepted by the exclude list.
+
- There is a new list attribute 'subscribe_auto_approval' which is a list
of email addresses and regular expressions matching email addresses
whose subscriptions are exempt from admin approval. RFE 403066.
--
Active development version (web u/i update)
https://code.launchpad.net/~mailman-coders/mailman/2.2
Your team Mailman Checkins is subscribed to branch lp:mailman/2.2.
To unsubscribe from this branch go to
https://code.launchpad.net/~mailman-coders/mailman/2.2/+edit-subscription.
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org