Remove original message from -request mail response?
Does anyone know if there is a way to NOT include the original email when commands sent to the -request address responds?
I've noticed a number of spammers are sending mail to my lists -request addresses ("The results of your email commands"), and the original spam is attached to the response.
Thanks!
david
On Nov 28, 2004, at 03:16, David Gibbs wrote:
Does anyone know if there is a way to NOT include the original email when commands sent to the -request address responds?
In Mailman/Queue/CommandRunner.py, try commenting out the section at the end of Results.send_response: msg.set_type('multipart/mixed') msg.attach(results) # orig = MIMEMessage(self.msg) # msg.attach(orig) msg.send(self.mlist)
I would be concerned that doing that might make it more difficult for legitimate users to figure out what went wrong with their mail to the -request address though.
-- Jim Tittsler http://www.OnJapan.net/ GPG: 0x01159DB6 Python Starship http://Starship.Python.net/ Ringo MUG Tokyo http://www.ringo.net/rss.html
Jim Tittsler wrote:
Does anyone know if there is a way to NOT include the original email when commands sent to the -request address responds? In Mailman/Queue/CommandRunner.py, try commenting out the section at the end of Results.send_response:
Ach, reply to this ... thanks very much for the patch. It did exactly what I was looking for.
I would be concerned that doing that might make it more difficult for legitimate users to figure out what went wrong with their mail to the -request address though.
Not a major concern for me ... as few of my users interact with mailman through email.
david
participants (2)
-
David Gibbs
-
Jim Tittsler