summaryrefslogtreecommitdiff
path: root/src/mailman/commands/docs/end.rst
blob: 38c268c1ce683e481f9ad0e90edaf787aae38ab5 (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
37
=================
The 'end' command
=================

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

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

The 'end' command takes no arguments.

    >>> print('DESCRIPTION:', command.argument_description)
    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)
    An alias for 'end'.
    >>> print('DESCRIPTION:', command.argument_description)
    DESCRIPTION:
    >>> print(command.process(mlist, Message(), {}, (), None))
    ContinueProcessing.no