On 6/7/20 9:40 AM, kelly.close@lrewater.com wrote:
So I have a template file here: /var/lib/mailman3/templates/lists/f2p2-test.udfcd-lists.org/en/list:member:regular:footer.txt
I had to create everything below templates/ as that folder was empty on install. I made sure what I created had the same permissions as the templates folder. I'm not sure what else to do. Is there a configuration file somewhere perhaps the identifies the path of the templates folder and maybe I need to adjust it?
There are two things. One is the location of the templates/
directory.
That is located in $var_dir
and the value of that depends on the
settings for
[mailman]
layout:
and
[paths.<layout_value>]
var_dir:
in mailman.cfg. I'm not certain, but I think /var/lib/mailman3/
is
correct for the Debian/Ubuntu package.
The other thing that affects this is the value of the URI for the template in the database. This is somewhat tricky. The docs are at <https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/rest/docs/templates.html>, but there isn't an example of retrieving URIs via REST. I.e. something like
curl -urestadmin:restpass
http://localhost:8001/3.1/lists/f2p2-test.udfcd-lists.org/uris
should work, but returns a 404 when I try it on one of my lists that has a URI.
I look in mailman's database with a query like
select name, context, uri from template;
What you are looking for is a row with name
=
list:member:regular:footer
and context
=
f2p2-test.udfcd-lists.org
. If there is one and it has a uri other than
mailman:///$listname/$language/list:member:regular:footer.txt
then
Mailman will look there for the template.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan