summaryrefslogtreecommitdiff
path: root/Mailman/pipeline/docs/calc-recips.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/pipeline/docs/calc-recips.txt')
-rw-r--r--Mailman/pipeline/docs/calc-recips.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/Mailman/pipeline/docs/calc-recips.txt b/Mailman/pipeline/docs/calc-recips.txt
index f2a9b3113..193206a64 100644
--- a/Mailman/pipeline/docs/calc-recips.txt
+++ b/Mailman/pipeline/docs/calc-recips.txt
@@ -5,8 +5,8 @@ Every message that makes it through to the list membership gets sent to a set
of recipient addresses. These addresses are calculated by one of the handler
modules and depends on a host of factors.
- >>> from Mailman.pipeline.calculate_recipients import process
>>> from Mailman.configuration import config
+ >>> handler = config.handlers['calculate-recipients']
>>> mlist = config.db.list_manager.create(u'_xtest@example.com')
Recipients are calculate from the list members, so add a bunch of members to
@@ -52,7 +52,7 @@ but not all of the recipients.
... """)
>>> recips = set((u'qperson@example.com', u'zperson@example.com'))
>>> msgdata = dict(recips=recips)
- >>> process(mlist, msg, msgdata)
+ >>> handler.process(mlist, msg, msgdata)
>>> sorted(msgdata['recips'])
[u'qperson@example.com', u'zperson@example.com']
@@ -64,7 +64,7 @@ Regular delivery recipients are those people who get messages from the list as
soon as they are posted. In other words, these folks are not digest members.
>>> msgdata = {}
- >>> process(mlist, msg, msgdata)
+ >>> handler.process(mlist, msg, msgdata)
>>> sorted(msgdata['recips'])
[u'aperson@example.com', u'bperson@example.com', u'cperson@example.com']
@@ -77,7 +77,7 @@ Members can elect not to receive a list copy of their own postings.
... Something of great import.
... """)
>>> msgdata = {}
- >>> process(mlist, msg, msgdata)
+ >>> handler.process(mlist, msg, msgdata)
>>> sorted(msgdata['recips'])
[u'aperson@example.com', u'bperson@example.com']