The ‘echo’ command

The mail command ‘echo’ simply replies with the original command and arguments to the sender.

>>> command = config.commands['echo']
>>> print(
>>> print(command.argument_description)
>>> print(command.description)
Echo back your arguments.

The original message is ignored, but the results receive the echoed command.

>>> mlist = create_list('')

>>> from mailman.runners.command import Results
>>> results = Results()

>>> from import Message
>>> print(command.process(mlist, Message(), {}, ('foo', 'bar'), results))
>>> print(str(results))
The results of your email command are provided below.

echo foo bar