custom message for banned address
![](https://secure.gravatar.com/avatar/ba05ce9485988d78f97537e770f556e8.jpg?s=120&d=mm&r=g)
Hi,
We're currently running Mailman 2.1.12
I have been asked if we can customized message for addresses that are banned on certain lists, similar to the ability to customize postheld.txt for specific lists. We have a group of lists that we would like to limit membership to our domain but would like to have a little more explanation than the default message provides. For the general case the default is fine, but for a subset some customizing would great.
I did some looking around in the source tree and this doesn't seem that this is possible, but I don't claim to be a Python expert, so it seems worth checking.
Thanks in advance for any help or suggestions.
thanx -jmck
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
On 06/30/2014 09:57 AM, Jim McKinney wrote:
The short answer is No. The current messages are coded in more than one module and are not all the same, but for your purposes, Mailman/Cgi/subscribe.py for web subscribes and Mailman/Commands/cmd_subscribe.py for email subscribes would probably cover it.
These modules make no provision for list specific messages, so doing so would require altering the modules.
It is possible to globally change the messages without modifying code, by creating the path and file messages/en/LC_MESSAGES/mailman.po containing something like the attached edited for your desired messages and then compiling it with
~mailman/bin/msgfmt ~mailman/messages/en/LC_MESSAGES/mailman.po
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
On 06/30/2014 09:57 AM, Jim McKinney wrote:
The short answer is No. The current messages are coded in more than one module and are not all the same, but for your purposes, Mailman/Cgi/subscribe.py for web subscribes and Mailman/Commands/cmd_subscribe.py for email subscribes would probably cover it.
These modules make no provision for list specific messages, so doing so would require altering the modules.
It is possible to globally change the messages without modifying code, by creating the path and file messages/en/LC_MESSAGES/mailman.po containing something like the attached edited for your desired messages and then compiling it with
~mailman/bin/msgfmt ~mailman/messages/en/LC_MESSAGES/mailman.po
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Jim McKinney
-
Mark Sapiro