How to edit default 'Reject (with notification)' message
Dear all,
I want to modify the default text sent in response to when we select 'Reject (with Notification)' in 'Message Acceptance > Default action to take when a non-member posts to the list' settings.
Currently, the default rejection text is as follows:
"Your message to the $list was rejected for the following reasons:
The message is not from a list member
The original message as received by Mailman is attached."
I have created a template with the option, "Notice sent to a poster when their message has been rejected by the list’s moderator." but it only works if message acceptance is set to 'Hold for Moderation' and then the moderator rejects the post manually.
Is there any source file, which I can modify to replace the default rejection text mentioned above?
Sincerely, Zee
Zaheer Abbas writes:
Currently, the default rejection text is as follows:
"Your message to the $list was rejected for the following reasons:
The message is not from a list member
The original message as received by Mailman is attached." [...] Is there any source file, which I can modify to replace the default rejection text mentioned above?
Is mailman/src/mailman/templates/en/list:user:notice:rejected.txt what you're looking for?
But it's not recommended to alter the source, because when you upgrade it will get overwritten, and then you have to remember how to do it again. I haven't done this myself, but IIRC you can select "Domains" from the menubar at the top, then the "Templates" button at the right, then "New Template", and select list:user:notice:rejected from the dropdown menu to set the template domain-wide. Unless you have a *lot* of domains, this is what I would recommend.
There's a similar feature for individual lists. I forget how this interacts with localization for different languages, sorry.
Steve
On 5/26/23 7:57 AM, Zaheer Abbas wrote:
I have created a template with the option, "Notice sent to a poster when their message has been rejected by the list’s moderator." but it only works if message acceptance is set to 'Hold for Moderation' and then the moderator rejects the post manually.
Is there any source file, which I can modify to replace the default rejection text mentioned above?
The template you want is described in Postorius as
[list.user.notice.rejected] Notice sent to a poster when their message has been rejected automatically
You can set it in Postorius per list or per domain or you can set it sitewide by putting it in Mailman's var/templates/site/en/list.user.notice.rejected.txt and if you do that, be sure the Mailman user has access to read it.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (3)
-
Mark Sapiro
-
Stephen J. Turnbull
-
Zaheer Abbas