summaryrefslogtreecommitdiff
path: root/src/mailman/pipeline/docs/avoid-duplicates.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/pipeline/docs/avoid-duplicates.txt')
-rw-r--r--src/mailman/pipeline/docs/avoid-duplicates.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mailman/pipeline/docs/avoid-duplicates.txt b/src/mailman/pipeline/docs/avoid-duplicates.txt
index adca9cbe5..aef50aa6e 100644
--- a/src/mailman/pipeline/docs/avoid-duplicates.txt
+++ b/src/mailman/pipeline/docs/avoid-duplicates.txt
@@ -7,8 +7,8 @@ reduce the reception of duplicate messages. It does this by removing certain
recipients from the list of recipients that earlier handler modules
(e.g. CalcRecips) calculates.
- >>> handler = config.handlers['avoid-duplicates']
- >>> mlist = config.db.list_manager.create('_xtest@example.com')
+ >>> from mailman.app.lifecycle import create_list
+ >>> mlist = create_list('_xtest@example.com')
Create some members we're going to use.
@@ -36,6 +36,8 @@ The module short-circuits if there are no recipients.
... Something
... """)
>>> msgdata = {}
+
+ >>> handler = config.handlers['avoid-duplicates']
>>> handler.process(mlist, msg, msgdata)
>>> msgdata
{}