diff options
| author | Barry Warsaw | 2008-09-24 22:59:05 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2008-09-24 22:59:05 -0400 |
| commit | 12e5731cb50716590c86bdd55a1dae442b8d256c (patch) | |
| tree | e63e9d6ffcf552472de3076c0739d4871400e586 /mailman/queue/docs/command.txt | |
| parent | 9be793725d86c2bbd0bb0791bce4aecd80838e48 (diff) | |
| parent | c129b48a91d11fd3fb69666b8109c3a9372b2f8f (diff) | |
| download | mailman-12e5731cb50716590c86bdd55a1dae442b8d256c.tar.gz mailman-12e5731cb50716590c86bdd55a1dae442b8d256c.tar.zst mailman-12e5731cb50716590c86bdd55a1dae442b8d256c.zip | |
thread merge
Diffstat (limited to 'mailman/queue/docs/command.txt')
| -rw-r--r-- | mailman/queue/docs/command.txt | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/mailman/queue/docs/command.txt b/mailman/queue/docs/command.txt index c18e7a34c..470a632b7 100644 --- a/mailman/queue/docs/command.txt +++ b/mailman/queue/docs/command.txt @@ -104,3 +104,68 @@ message is plain text. <BLANKLINE> - Done. <BLANKLINE> + + +Stopping command processing +--------------------------- + +The 'end' command stops email processing, so that nothing following is looked +at by the command queue. + + >>> msg = message_from_string("""\ + ... From: cperson@example.com + ... To: test-request@example.com + ... Message-ID: <caribou> + ... + ... echo foo bar + ... end ignored + ... echo baz qux + ... """) + + >>> inject_message(mlist, msg, qdir=config.CMDQUEUE_DIR) + >>> command.run() + >>> len(virgin_queue.files) + 1 + >>> item = get_queue_messages(virgin_queue)[0] + >>> print item.msg.as_string() + Subject: The results of your email commands + ... + <BLANKLINE> + - Results: + echo foo bar + <BLANKLINE> + - Unprocessed: + echo baz qux + <BLANKLINE> + - Done. + <BLANKLINE> + +The 'stop' command is an alias for 'end'. + + >>> msg = message_from_string("""\ + ... From: cperson@example.com + ... To: test-request@example.com + ... Message-ID: <caribou> + ... + ... echo foo bar + ... stop ignored + ... echo baz qux + ... """) + + >>> inject_message(mlist, msg, qdir=config.CMDQUEUE_DIR) + >>> command.run() + >>> len(virgin_queue.files) + 1 + >>> item = get_queue_messages(virgin_queue)[0] + >>> print item.msg.as_string() + Subject: The results of your email commands + ... + <BLANKLINE> + - Results: + echo foo bar + <BLANKLINE> + - Unprocessed: + echo baz qux + <BLANKLINE> + - Done. + <BLANKLINE> |
