On Thu, Feb 16, 2023 at 10:26 AM Mark Sapiro <mark@msapiro.net> wrote:
On 2/15/23 23:04, Odhiambo Washington wrote:
The last time I referred to the link, I deliberately duplicated the <LC> folder in two locations: [09:51 ~ ]$ ls -al /opt/mailman/mm/var/templates/site/en/ total 48 drwxr-xr-x 2 mailman mailman 512 Feb 14 08:53 . drwxr-xr-x 3 mailman mailman 512 Feb 14 08:53 .. -rw------- 1 mailman mailman 615 Jan 17 13:57
-rw------- 1 mailman mailman 341 Jan 17 13:54
-rw------- 1 mailman mailman 158 Dec 17 13:32
-rw------- 1 mailman mailman 452 Jan 17 13:54
-rw------- 1 mailman mailman 137 Jan 17 13:55
-rw------- 1 mailman mailman 1219 Dec 8 15:12
-rw------- 1 mailman mailman 944 Jan 17 15:50
-rw------- 1 mailman mailman 247 Jan 17 13:56
-rw------- 1 mailman mailman 802 Jan 17 13:56
-rw------- 1 mailman mailman 639 Jan 17 13:57
domain:admin:notice:new-list.txt list:admin:action:post.txt list:member:digest:footer.txt list:member:digest:masthead.txt list:member:generic:footer.txt list:member:regular:footer.txt list:user:action:subscribe.txt list:user:notice:post.txt list:user:notice:probe.txt list:user:notice:welcome.txt
Yet, it is NOT being picked. So definitely something is wrong somewhere.
If you have the same list:* file in both /opt/mailman/mm/var/templates/site/en/ and /opt/mailman/mm/var/templates/lists/kictanet.lists.kictanet.or.ke/en/ the ones in the lists directory will take precedence for that list over the ones in the site directory.
In my case, I had the exact same files in the two paths and the list:user:action:subscribe.txt was still not used in my tests. Why?
I have now created the directory: mkdir -p /opt/mailman/mm/var/templates/domains/lists.kictanet.or.ke/en/ And I have placed the same files in there. Gearing up for a test to see if the template will be used this time around.
See
https://gitlab.com/mailman/mailman/-/blob/master/src/mailman/utilities/i18n.... for a discussion of the search order.
Will do.
Are the other templates such as list:member:regular:footer.txt used?
I do see that in posts to the list, but I believe that is perhaps only working because the list had that footer when it was imported from MM2.
A template from import21 of the kictanet@lists.kictanet.or.ke list will be stored in the /opt/mailman/mm/var/templates/lists/kictanet.lists.kictanet.or.ke/en/ directory.
It wasn't a template per se. It was the regular nondigest msg_footer from MM2.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)