summaryrefslogtreecommitdiff
path: root/src/mailman/pipeline/docs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/pipeline/docs')
-rw-r--r--src/mailman/pipeline/docs/calc-recips.txt16
-rw-r--r--src/mailman/pipeline/docs/file-recips.txt27
2 files changed, 27 insertions, 16 deletions
diff --git a/src/mailman/pipeline/docs/calc-recips.txt b/src/mailman/pipeline/docs/calc-recips.txt
index 27c2ba806..efa1bc9c7 100644
--- a/src/mailman/pipeline/docs/calc-recips.txt
+++ b/src/mailman/pipeline/docs/calc-recips.txt
@@ -59,8 +59,9 @@ but not all of the recipients.
>>> handler = config.handlers['calculate-recipients']
>>> handler.process(mlist, msg, msgdata)
- >>> sorted(msgdata['recipients'])
- [u'qperson@example.com', u'zperson@example.com']
+ >>> dump_list(msgdata['recipients'])
+ qperson@example.com
+ zperson@example.com
Regular delivery recipients
@@ -71,8 +72,10 @@ soon as they are posted. In other words, these folks are not digest members.
>>> msgdata = {}
>>> handler.process(mlist, msg, msgdata)
- >>> sorted(msgdata['recipients'])
- [u'aperson@example.com', u'bperson@example.com', u'cperson@example.com']
+ >>> dump_list(msgdata['recipients'])
+ aperson@example.com
+ bperson@example.com
+ cperson@example.com
Members can elect not to receive a list copy of their own postings.
@@ -84,8 +87,9 @@ Members can elect not to receive a list copy of their own postings.
... """)
>>> msgdata = {}
>>> handler.process(mlist, msg, msgdata)
- >>> sorted(msgdata['recipients'])
- [u'aperson@example.com', u'bperson@example.com']
+ >>> dump_list(msgdata['recipients'])
+ aperson@example.com
+ bperson@example.com
Members can also elect not to receive a list copy of any message on which they
are explicitly named as a recipient. However, see the `avoid duplicates`_
diff --git a/src/mailman/pipeline/docs/file-recips.txt b/src/mailman/pipeline/docs/file-recips.txt
index c7eeb9ce8..c994f820e 100644
--- a/src/mailman/pipeline/docs/file-recips.txt
+++ b/src/mailman/pipeline/docs/file-recips.txt
@@ -30,8 +30,8 @@ returns.
<BLANKLINE>
A message.
<BLANKLINE>
- >>> msgdata
- {u'recipients': 7}
+ >>> dump_msgdata(msgdata)
+ recipients: 7
Missing file
@@ -50,8 +50,8 @@ empty.
No such file or directory: u'.../_xtest@example.com/members.txt'
>>> msgdata = {}
>>> handler.process(mlist, msg, msgdata)
- >>> sorted(msgdata['recipients'])
- []
+ >>> dump_list(msgdata['recipients'])
+ *Empty*
Existing file
@@ -74,9 +74,13 @@ addresses are returned as the set of recipients.
>>> msgdata = {}
>>> handler.process(mlist, msg, msgdata)
- >>> sorted(msgdata['recipients'])
- ['bperson@example.com', 'cperson@example.com', 'dperson@example.com',
- 'eperson@example.com', 'fperson@example.com', 'gperson@example.com']
+ >>> dump_list(msgdata['recipients'])
+ bperson@example.com
+ cperson@example.com
+ dperson@example.com
+ eperson@example.com
+ fperson@example.com
+ gperson@example.com
However, if the sender of the original message is a member of the list and
their address is in the include file, the sender's address is *not* included
@@ -99,6 +103,9 @@ in the recipients list.
... """)
>>> msgdata = {}
>>> handler.process(mlist, msg, msgdata)
- >>> sorted(msgdata['recipients'])
- ['bperson@example.com', 'dperson@example.com',
- 'eperson@example.com', 'fperson@example.com', 'gperson@example.com']
+ >>> dump_list(msgdata['recipients'])
+ bperson@example.com
+ dperson@example.com
+ eperson@example.com
+ fperson@example.com
+ gperson@example.com