Hello all, It's a tiny issue but really nags me. When a user sends a command to the request address (so far I've tried 'help' and 'set help') the reply shows the command's results twice, repeated within the same message. How could I fix this?
On 05/26/2018 10:13 AM, Rubén Fernández Asensio wrote:
Hello all, It's a tiny issue but really nags me. When a user sends a command to the request address (so far I've tried 'help' and 'set help') the reply shows the command's results twice, repeated within the same message. How could I fix this?
If you are including the command in both the Subject: and the body, that is why. If the Subject: contains a valid command, it will be executed. Thus a message with 'Subject: help' and 'help' in the body contains two help commands so the command is executed twice.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mark Sapiro writes:
If you are including the command in both the Subject: and the body, that is why. If the Subject: contains a valid command, it will be executed. Thus a message with 'Subject: help' and 'help' in the body contains two help commands so the command is executed twice.
I don't think this is worth fixing in Mailman 2, but we should try to ensure idempotence in Mailman 3.
participants (3)
-
Mark Sapiro -
Rubén Fernández Asensio -
Stephen J. Turnbull