diff options
| author | Barry Warsaw | 2009-08-21 18:07:35 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2009-08-21 18:07:35 -0400 |
| commit | d1718e1a1cc289344d2a68c7430c492a4a7966b6 (patch) | |
| tree | d6b404e8544c83de5a3516a8206c7da92d9d088f /src/mailman/pipeline/docs/avoid-duplicates.txt | |
| parent | da566eb047608ed2e65c71dd25979f01c825c843 (diff) | |
| download | mailman-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.txt | 6 |
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 {} |
