summaryrefslogtreecommitdiff
path: root/src/mailman/pipeline/docs/avoid-duplicates.txt
diff options
context:
space:
mode:
authorBarry Warsaw2009-08-21 18:07:35 -0400
committerBarry Warsaw2009-08-21 18:07:35 -0400
commitd1718e1a1cc289344d2a68c7430c492a4a7966b6 (patch)
treed6b404e8544c83de5a3516a8206c7da92d9d088f /src/mailman/pipeline/docs/avoid-duplicates.txt
parentda566eb047608ed2e65c71dd25979f01c825c843 (diff)
downloadmailman-d1718e1a1cc289344d2a68c7430c492a4a7966b6.tar.gz
mailman-d1718e1a1cc289344d2a68c7430c492a4a7966b6.tar.zst
mailman-d1718e1a1cc289344d2a68c7430c492a4a7966b6.zip
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
{}