diff options
| author | Barry Warsaw | 2009-01-16 21:04:21 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2009-01-16 21:04:21 -0500 |
| commit | ae3d0cc316b826b8325507d960ccf84da601c3b0 (patch) | |
| tree | 3485e2ca463c2131a0ffb1693bc60d569cc9d8b7 /mailman/pipeline/calculate_recipients.py | |
| parent | a3f7d07c62b2f7d6ac9d0b700883826c2838db60 (diff) | |
| download | mailman-ae3d0cc316b826b8325507d960ccf84da601c3b0.tar.gz mailman-ae3d0cc316b826b8325507d960ccf84da601c3b0.tar.zst mailman-ae3d0cc316b826b8325507d960ccf84da601c3b0.zip | |
Diffstat (limited to 'mailman/pipeline/calculate_recipients.py')
| -rw-r--r-- | mailman/pipeline/calculate_recipients.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/mailman/pipeline/calculate_recipients.py b/mailman/pipeline/calculate_recipients.py index 9385c64e8..9837c1e6b 100644 --- a/mailman/pipeline/calculate_recipients.py +++ b/mailman/pipeline/calculate_recipients.py @@ -23,8 +23,12 @@ on the `recips' attribute of the message. This attribute is used by the SendmailDeliver and BulkDeliver modules. """ +from __future__ import absolute_import, unicode_literals + __metaclass__ = type -__all__ = ['CalculateRecipients'] +__all__ = [ + 'CalculateRecipients', + ] from zope.interface import implements @@ -83,7 +87,7 @@ class CalculateRecipients: Your urgent message to the %(realname)s mailing list was not authorized for delivery. The original message as received by Mailman is attached. """) - raise errors.RejectMessage, Utils.wrap(text) + raise errors.RejectMessage(Utils.wrap(text)) # Calculate the regular recipients of the message recips = set(member.address.address for member in mlist.regular_members.members @@ -133,8 +137,8 @@ def do_topic_filters(mlist, msg, msgdata, recips): # The user did not select any topics of interest, so he gets # this message by default. continue - if not mlist.getMemberOption(user, - config.ReceiveNonmatchingTopics): + if not mlist.getMemberOption( + user, config.ReceiveNonmatchingTopics): # The user has interest in some topics, but elects not to # receive message that match no topics, so zap him. zaprecips.append(user) |
