diff options
| author | Barry Warsaw | 2009-11-02 20:07:53 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2009-11-02 20:07:53 -0500 |
| commit | 1e8d8bfdb64968763a6a4fbd74ad912eb4c6c0b6 (patch) | |
| tree | ba95236f769894b593dc9585cdfc2362d0aeb806 /src/mailman/pipeline/docs | |
| parent | c9d9f209a26f64bb54ec6e31b9c2d5a8d030b8e0 (diff) | |
| download | mailman-1e8d8bfdb64968763a6a4fbd74ad912eb4c6c0b6.tar.gz mailman-1e8d8bfdb64968763a6a4fbd74ad912eb4c6c0b6.tar.zst mailman-1e8d8bfdb64968763a6a4fbd74ad912eb4c6c0b6.zip | |
Fix all tests except outgoing.txt and common.txt
Diffstat (limited to 'src/mailman/pipeline/docs')
| -rw-r--r-- | src/mailman/pipeline/docs/acknowledge.txt | 4 | ||||
| -rw-r--r-- | src/mailman/pipeline/docs/avoid-duplicates.txt | 5 | ||||
| -rw-r--r-- | src/mailman/pipeline/docs/decorate.txt | 21 |
3 files changed, 5 insertions, 25 deletions
diff --git a/src/mailman/pipeline/docs/acknowledge.txt b/src/mailman/pipeline/docs/acknowledge.txt index 3b8316cab..c304bd8bf 100644 --- a/src/mailman/pipeline/docs/acknowledge.txt +++ b/src/mailman/pipeline/docs/acknowledge.txt @@ -110,7 +110,7 @@ The receipt will include the original message's subject in the response body, >>> virginq.files [] >>> sorted(qdata.items()) - [..., ('recips', [u'aperson@example.com']), ...] + [..., ('recipients', [u'aperson@example.com']), ...] >>> print qmsg.as_string() ... MIME-Version: 1.0 @@ -144,7 +144,7 @@ If there is no subject, then the receipt will use a generic message. >>> virginq.files [] >>> sorted(qdata.items()) - [..., ('recips', [u'aperson@example.com']), ...] + [..., ('recipients', [u'aperson@example.com']), ...] >>> print qmsg.as_string() MIME-Version: 1.0 ... diff --git a/src/mailman/pipeline/docs/avoid-duplicates.txt b/src/mailman/pipeline/docs/avoid-duplicates.txt index b6d0133fd..1493c4d04 100644 --- a/src/mailman/pipeline/docs/avoid-duplicates.txt +++ b/src/mailman/pipeline/docs/avoid-duplicates.txt @@ -24,7 +24,8 @@ Create some members we're going to use. >>> member_b = address_b.subscribe(mlist, MemberRole.member) >>> # This is the message metadata dictionary as it would be produced by >>> # the CalcRecips handler. - >>> recips = dict(recips=['aperson@example.com', 'bperson@example.com']) + >>> recips = dict( + ... recipients=['aperson@example.com', 'bperson@example.com']) Short circuiting @@ -126,7 +127,7 @@ Other headers checked for recipients include the To... ... """) >>> msgdata = recips.copy() >>> handler.process(mlist, msg, msgdata) - >>> sorted(msgdata['recips']) + >>> sorted(msgdata['recipients']) [u'bperson@example.com'] >>> print msg.as_string() From: Claire Person <cperson@example.com> diff --git a/src/mailman/pipeline/docs/decorate.txt b/src/mailman/pipeline/docs/decorate.txt index 78b500409..246e67096 100644 --- a/src/mailman/pipeline/docs/decorate.txt +++ b/src/mailman/pipeline/docs/decorate.txt @@ -295,24 +295,3 @@ that the header and footer can be added as attachments. <BLANKLINE> footer --BOUNDARY-- - - -Personalization -=============== - -A mailing list can be 'personalized', meaning that each message is unique for -each recipient. When the list is personalized, additional interpolation -variables are available, however the list of intended recipients must be -provided in the message data, otherwise an exception occurs. - - >>> process(mlist, None, dict(personalize=True)) - Traceback (most recent call last): - ... - AssertionError: The number of intended recipients must be exactly 1 - -And the number of intended recipients must be exactly 1. - - >>> process(mlist, None, dict(personalize=True, recipients=[1, 2, 3])) - Traceback (most recent call last): - ... - AssertionError: The number of intended recipients must be exactly 1 |
