Remove original message from -request mail response?
![](https://secure.gravatar.com/avatar/1f41ce7b88907fcc4ed4ec751fe48241.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/4f36b4d2b1cde650bbb41d889c64bc07.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/1f41ce7b88907fcc4ed4ec751fe48241.jpg?s=120&d=mm&r=g)
Jim Tittsler wrote:
Ach, reply to this ... thanks very much for the patch. It did exactly what I was looking for.
Not a major concern for me ... as few of my users interact with mailman through email.
david
![](https://secure.gravatar.com/avatar/4f36b4d2b1cde650bbb41d889c64bc07.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/1f41ce7b88907fcc4ed4ec751fe48241.jpg?s=120&d=mm&r=g)
Jim Tittsler wrote:
Ach, reply to this ... thanks very much for the patch. It did exactly what I was looking for.
Not a major concern for me ... as few of my users interact with mailman through email.
david
participants (2)
-
David Gibbs
-
Jim Tittsler