Now that I’m managing our companies Mailman install my blog seems to be overrun…
So, as much of the internet has already noticed, Google/Gmail “helps” users by automatically archiving users own posts to discussion lists when they are received. This is stupid for a number of reasons, which I won’t go in to, but suffice to say that there is no way to convince Gmail of said stupidity.
While puzzling the situation it occurred to me that, at least for my group of people, the receipt of their own postings didn’t have anything to do with the message itself. The real reason we wanted to get our own posts was that we wanted an acknowledgement of our post letting us know everything went ok and that we could expect others to receive the message. Mailman will happily send you a “Your message entitled … was successfully received…” if you set AcknowledgePosts(ack) in your membership options. Because this email looks nothing like the original message you sent, Gmail won’t try to help you out! Magic!
Naturally the next question, as the title implies, is how to do this from the command line. If you’re like me, using Google Apps for your company, this is a problem for all of your users and one that you’d like to fix for everyone in one go. Mark Sapiro has written many helpful mailman scripts that can accomplish this type of task (http://www.msapiro.net/scripts/), but unfortunately this specific option didn’t get any love.
The following script was shamelessly copied/pasted/find/replaceded from the set_mod.py script found at the above url. Usage is described in the comments.
For one reason or another the –all flag of withlist doesn’t work here. Rather than figure it out, just use xargs…
[[code]]czo4OTpcIg0KbHMgL3Zhci9saWIvbWFpbG1hbi9saXN0cy8gfCB4YXJncyAtSSB7fSAuL3dpdGhsaXN0IC1yIHNldF9hY2sge30gLXN7WyYqJl19IC1kIFwnZXhhbXBsZS5jb21cJw0KXCI7e1smKiZdfQ==[[/code]]
