summaryrefslogtreecommitdiff
path: root/src/mailman/commands/docs/end.txt
blob: a11bea0956217fb99c2c8f55725a617af64b9df4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
The 'end' command
=================

The mail command processor recognized an 'end' command which tells it to stop
processing email messages.

    >>> command = config.commands['end']
    >>> command.name
    'end'
    >>> print command.description
    Stop processing commands.

The 'end' command takes no arguments.

    >>> command.argument_description
    ''

The command itself is fairly simple; it just stops command processing, and the
message isn't even looked at.

    >>> mlist = create_list('test@example.com')
    >>> from mailman.email.message import Message
    >>> print command.process(mlist, Message(), {}, (), None)
    ContinueProcessing.no

The 'stop' command is a synonym for 'end'.

    >>> command = config.commands['stop']
    >>> print command.name
    stop
    >>> print command.description
    Stop processing commands.
    >>> command.argument_description
    ''
    >>> print command.process(mlist, Message(), {}, (), None)
    ContinueProcessing.no