diff options
Diffstat (limited to 'src/mailman/pipeline/docs/file-recips.txt')
| -rw-r--r-- | src/mailman/pipeline/docs/file-recips.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mailman/pipeline/docs/file-recips.txt b/src/mailman/pipeline/docs/file-recips.txt index 479ae9975..2c9d7724f 100644 --- a/src/mailman/pipeline/docs/file-recips.txt +++ b/src/mailman/pipeline/docs/file-recips.txt @@ -6,8 +6,8 @@ Mailman can calculate the recipients for a message from a Sendmail-style include file. This file must be called members.txt and it must live in the list's data directory. - >>> handler = config.handlers['file-recipients'] - >>> mlist = config.db.list_manager.create('_xtest@example.com') + >>> from mailman.app.lifecycle import create_list + >>> mlist = create_list('_xtest@example.com') Short circuiting @@ -22,6 +22,8 @@ returns. ... A message. ... """) >>> msgdata = {'recips': 7} + + >>> handler = config.handlers['file-recipients'] >>> handler.process(mlist, msg, msgdata) >>> print msg.as_string() From: aperson@example.com |
