Language confusion in held mail notifications
I just upgraded from Mailman 3.2.0 (La Villa Strangiato) to Mailman 3.3.4 (Tom Sawyer) - Docker Mailman v0.3.12. As the language is not possible to set, and the default language is English, I set my user profile to Spanish and the list config to German, to figure out where the changes would take affect.
After sending a mail to the list as the moderated list user, the resulting notification returned to the users email address is mostly in German, but the reason indicated is in Spanish "El mensaje proviene de un miembro moderado".
Ihre Nachricht an 'testlist@mailman' mit dem Betreff
Test 202109221045
wurde zurückgehalten, bis eine Moderator*in sie freigegeben hat.
Der Grund dafür ist:
El mensaje proviene de un miembro moderado
Ihre Nachricht wird entweder an die Liste zugestellt, oder Sie werden über die die Entscheidung der Moderator*innen benachrichtigt.
I would expect that Mailman would respect the user's language setting (in case the user have a profile) or otherwise the list language setting (if no user profile).
/Henrik Rasmussen
On 9/22/21 2:16 AM, Henrik Rasmussen wrote:
I just upgraded from Mailman 3.2.0 (La Villa Strangiato) to Mailman 3.3.4 (Tom Sawyer) - Docker Mailman v0.3.12. As the language is not possible to set, and the default language is English, I set my user profile to Spanish and the list config to German, to figure out where the changes would take affect.
After sending a mail to the list as the moderated list user, the resulting notification returned to the users email address is mostly in German, but the reason indicated is in Spanish "El mensaje proviene de un miembro moderado".
I am unable to duplicate this in Mailman 3.3.5rc1. I set the list's language to German and a moderated user's language to Spanish. The held message notice to the user was entirely in Spanish and the notice to the admin was entirely in German.
User Notice --------------------------------------------------- Date: Thu, 23 Sep 2021 17:12:50 -0700 From: test-bounces@msapiro.net To: mark@msapiro.net Subject: Su mensaje a test@msapiro.net espera la aprobación del moderador
Su mensaje a la lista 'test@msapiro.net' con el asunto
A test message
Ha sido retenido hasta que el moderador de la lista pueda revisarlo y aprobarlo.
El mensaje está siendo retenido por:
El mensaje proviene de un miembro moderado
O bien el mensaje será enviado a la lista, o bien recibirá una notificación con la decisión del moderador.
Owner Notice -------------------------------------------------- Date: Thu, 23 Sep 2021 17:12:50 -0700 From: test-owner@msapiro.net To: test-owner@msapiro.net Subject: Der Beitrag test@msapiro.net von mark@msapiro.net muss genehmigt werden
[-- Attachment #1 --] [-- Type: text/plain, Encoding: base64, Size: 0.5K --]
Ihre Einwilligung als Administrator*in ist für folgende Nachricht an die Mailingliste nötig:
Liste: test@msapiro.net
Absender: mark@msapiro.net
Betreff: A test message
Die Nachricht wurde aus folgenden Gründen zurückgehalten:
Die Nachricht kommt von einem moderierten Mitglied
Besuchen Sie die Administrations-Seiten, um die Nachricht anzunehmen oder abzulehnen.
[-- Attachment #2 --] [-- Type: message/rfc822, Encoding: 7bit, Size: 0.8K --]
Date: Thu, 23 Sep 2021 17:12:48 -0700 From: Mark Sapiro <mark@msapiro.net> To: test@msapiro.net Subject: A test message User-Agent: Mutt/1.9.4 (2018-02-28)
Give this a try.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
[-- Attachment #3 --] [-- Type: message/rfc822, Encoding: 7bit, Size: 0.9K --]
Date: Thu, 23 Sep 2021 17:12:50 -0700 From: test-request@msapiro.net Subject: confirm b903b34955e0268e33b011ff9c9ccb7667dce4f2
Wenn Sie auf diese Nachricht antworten und den Subject: Header unverändert lassen wird Mailman die zurückgehaltene Nachricht verwerfen. Tun Sie dies, wenn es sich bei der Nachricht um Spam handelt. Wenn Sie auf die Nachricht antworten und einen Approved: Header mit dem Listenkennwort einfügen, wird Nachricht für die Veröffentlichung auf die Liste genehmigt. Der Approved: Header kann auch in der ersten Zeile des Textes der Antwort erscheinen.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 9/23/21 5:27 PM, Mark Sapiro wrote:
I am unable to duplicate this in Mailman 3.3.5rc1.
Also note that these messages are created by the mailman/chains/hold.py module and there are no changes to that module between 3.3.4 and 3.3.5rc1.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mark Sapiro writes:
On 9/22/21 2:16 AM, Henrik Rasmussen wrote:
After sending a mail to the list as the moderated list user, the resulting notification returned to the users email address is mostly in German, but the reason indicated is in Spanish "El mensaje proviene de un miembro moderado".
I am unable to duplicate this in Mailman 3.3.5rc1.
Is it possible that one of the message catalogs is incomplete, and something in the environment (LANGUAGE seems like a likely candidate) is set to a value that uses German when Spanish is unavailable or vice-versa?
Steve
On 9/24/21 12:57 AM, Stephen J. Turnbull wrote:
Mark Sapiro writes:
On 9/22/21 2:16 AM, Henrik Rasmussen wrote:
After sending a mail to the list as the moderated list user, the resulting notification returned to the users email address is mostly in German, but the reason indicated is in Spanish "El mensaje proviene de un miembro moderado".
I am unable to duplicate this in Mailman 3.3.5rc1.
Is it possible that one of the message catalogs is incomplete, and something in the environment (LANGUAGE seems like a likely candidate) is set to a value that uses German when Spanish is unavailable or vice-versa?
Thanks for the hint Steve. There is a Spanish message catalog as evidenced by the fact that the reason was translated to Spanish, but the issue is almost certainly that there is no mailman/templates/es/list:user:notice:post.txt template so we fall back to the one for the list's language.
Note that prior to Mailman 3.3.5rc1 there are lots of missing templates
and in particular, the 3.3.4 Spanish templates were incorrectly named
with _
rather than :
in the names. Templates are actually translated
in the message catalogs via weblate, but these translations weren't
installed in the appropriate templates/ directory. There is now a script
at
https://gitlab.com/mailman/mailman/-/blob/master/update_lang_templates.py to
do this.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Thanks for the hint Steve. There is a Spanish message catalog as evidenced by the fact that the reason was translated to Spanish, but the issue is almost certainly that there is no mailman/templates/es/list:user:notice:post.txt template so we fall back to the one for the list's language.
I should note that my tests on same list with same language setup did not mix languages, for some reason and I can't replicate the problem. I wonder if it could have been a timing issue or the order that I changed languages on list language and user preference.
/Henrik Rasmussen
On 9/27/21 4:04 AM, Henrik Rasmussen wrote:
Thanks for the hint Steve. There is a Spanish message catalog as evidenced by the fact that the reason was translated to Spanish, but the issue is almost certainly that there is no mailman/templates/es/list:user:notice:post.txt template so we fall back to the one for the list's language.
I should note that my tests on same list with same language setup did not mix languages, for some reason and I can't replicate the problem. I wonder if it could have been a timing issue or the order that I changed languages on list language and user preference.
I really think it has to do with two conditions:
- the user's preferred language is Spanish
- there was no mailman/templates/es/list:user:notice:post.txt template
There were Spanish templates in Mailman core 3.3.4, but they were misnamed, e.g. list_user_notice_post.txt instead of list:user:notice:post.txt. Did you somehow add a mailman/templates/es/list:user:notice:post.txt template after the initial test?
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (3)
-
Henrik Rasmussen
-
Mark Sapiro
-
Stephen J. Turnbull