I have a problem removing the footer(s) from a list imported from MM2.1. I have been testing by entering my message in Hyperkitty (the list forum).
I an aware about the double footer issue[1], and I am aware that footers are cached, but I have removed the footer files according to [2], run Mailman shell according to [3], restarted the Mailman (Mailman core, Mailan web, Postgres database and postfix).
Did I miss something in order to remove the footers?
[1] https://gitlab.com/mailman/mailman/issues/407 [2] https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/... [3] https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/...
I'm running Docker-Mailman (Mailman version 3.2.0a1).
-- Henrik Rasmussen
On 10/02/2018 12:14 AM, Henrik Rasmussen wrote:
I have a problem removing the footer(s) from a list imported from MM2.1. I have been testing by entering my message in Hyperkitty (the list forum).
I an aware about the double footer issue[1], and I am aware that footers are cached, but I have removed the footer files according to [2], run Mailman shell according to [3], restarted the Mailman (Mailman core, Mailan web, Postgres database and postfix).
Did I miss something in order to remove the footers?
Removing the files won't work because Mailman will fall back the the built-in footer. You have to create empty files. The easiest thing is just to 'cp /dev/null' to the footer files created by import21
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mark Sapiro wrote:
On 10/02/2018 12:14 AM, Henrik Rasmussen wrote:
Did I miss something in order to remove the footers?
Removing the files won't work because Mailman will fall back the the built-in footer. You have to create empty files. The easiest thing is just to 'cp /dev/null' to the footer files created by import21
Copying /dev/null doesn't help. It seems to be the same old content of the footer files before I removed the files and restarted Mailman, as if Mailman keeps the cache.
I've just (again) ran # docker exec -it mailman-core mailman shell -l [LISTNAME_FQDN]
getUtility(ITemplateManager).delete('list:member:digest:footer', m.list_id) getUtility(ITemplateManager).delete('list:member:regular:footer', m.list_id)
after copying /dev/null to the files in /opt/mailman/core/var/templates/lists/[LISTNAME_FQDN]/da/list_member_digest_footer.txt and list_member_regular_footer.txt ,but that doesn't change anything.
-- Henrik Rasmussen
On 10/02/2018 01:03 AM, Henrik Rasmussen wrote:
Copying /dev/null doesn't help. It seems to be the same old content of the footer files before I removed the files and restarted Mailman, as if Mailman keeps the cache.
I've just (again) ran # docker exec -it mailman-core mailman shell -l [LISTNAME_FQDN]
getUtility(ITemplateManager).delete('list:member:digest:footer', m.list_id) getUtility(ITemplateManager).delete('list:member:regular:footer', m.list_id)
after copying /dev/null to the files in /opt/mailman/core/var/templates/lists/[LISTNAME_FQDN]/da/list_member_digest_footer.txt and list_member_regular_footer.txt ,but that doesn't change anything.
The templates named list_member_digest_footer.txt and list_member_regular_footer.txt (with underscores) were created by import21 and set as the URIs for those templates. Had you just copied /dev/null (or otherwise made empty) those files and done nothing else, that would have done what you wanted, but since you deleted the template URIs for the list, the template names are now the default list:member:digest:footer.txt and list:member:regular:footer.txt names (with colons) and those are the empty files you need to create.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mark Sapiro wrote:
The templates named list_member_digest_footer.txt and list_member_regular_footer.txt (with underscores) were created by import21 and set as the URIs for those templates. Had you just copied /dev/null (or otherwise made empty) those files and done nothing else, that would have done what you wanted, but since you deleted the template URIs for the list, the template names are now the default
How do I make these not default?
list:member:digest:footer.txt and list:member:regular:footer.txt names (with colons) and those are the empty files you need to create.
Or when I upgrade to V3.2.2 will I be able to just empty the templates in /postorius/lists/LISTNAME/templates?
Henrik
On 10/11/2018 02:04 AM, Henrik Rasmussen wrote:
Mark Sapiro wrote:
The templates named list_member_digest_footer.txt and list_member_regular_footer.txt (with underscores) were created by import21 and set as the URIs for those templates. Had you just copied /dev/null (or otherwise made empty) those files and done nothing else, that would have done what you wanted, but since you deleted the template URIs for the list, the template names are now the default
How do I make these not default?
You can set them via ITemplateManager.
Or when I upgrade to V3.2.2 will I be able to just empty the templates in /postorius/lists/LISTNAME/templates?
You could except Postorius won't let you set an empty value for a template and deleting a template in Postorius just reverts to using the default - e.g., 'list:member:regular:footer'.
What you need to do is copy /dev/null to files in (in your case) /opt/mailman/core/var/templates/lists/[LISTNAME_FQDN]/da/ named list:member:digest:footer.txt and list:member:regular:footer.txt.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Henrik Rasmussen
-
Mark Sapiro