diff options
Diffstat (limited to 'src/mailman/pipeline/docs/ack-headers.txt')
| -rw-r--r-- | src/mailman/pipeline/docs/ack-headers.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mailman/pipeline/docs/ack-headers.txt b/src/mailman/pipeline/docs/ack-headers.txt index 49b203cad..ddaa313dc 100644 --- a/src/mailman/pipeline/docs/ack-headers.txt +++ b/src/mailman/pipeline/docs/ack-headers.txt @@ -8,8 +8,8 @@ transformations. Some headers get added, others get changed. Some of these changes depend on mailing list settings and others depend on how the message is getting sent through the system. We'll take things one-by-one. - >>> from mailman.pipeline.cook_headers import process - >>> mlist = config.db.list_manager.create('_xtest@example.com') + >>> from mailman.app.lifecycle import create_list + >>> mlist = create_list('_xtest@example.com') >>> mlist.subject_prefix = '' When the message's metadata has a 'noack' key set, an 'X-Ack: no' header is @@ -20,6 +20,8 @@ added. ... ... A message of great import. ... """) + + >>> from mailman.pipeline.cook_headers import process >>> process(mlist, msg, dict(noack=True)) >>> print msg.as_string() From: aperson@example.com |
