Does the import21 script also import custom templates? Are these custom templates contained in the config.pck file? Are there any known issues with the importing of mm2 templates into a mm3 environment?
-- Brian Carpenter Harmonylists.com Emwd.com
On 10/11/20 7:41 AM, Brian Carpenter wrote:
Does the import21 script also import custom templates?
No.
Are these custom templates contained in the config.pck file?
No. They are in the same MM 2.1 directory as the config.pck, but in a sub-directory for the language code, i.e. lists/LISTNAME/LC/
Are there any known issues with the importing of mm2 templates into a mm3 environment?
The replacements are different. i.e., things like %(email)s and %(listname)s become $user_email and $short_listname.
Also, there are some MM 2.1 templates that have no MM 3 equivalent. Also, things like message and digest headers and footers that are MM 2.1 list attributes that are templates in MM 3, although import21 tries to handle those.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 10/11/20 11:06 AM, Mark Sapiro wrote:
On 10/11/20 7:41 AM, Brian Carpenter wrote:
Does the import21 script also import custom templates? No.
Are these custom templates contained in the config.pck file? No. They are in the same MM 2.1 directory as the config.pck, but in a sub-directory for the language code, i.e. lists/LISTNAME/LC/
Are there any known issues with the importing of mm2 templates into a mm3 environment?
The replacements are different. i.e., things like %(email)s and %(listname)s become $user_email and $short_listname.
Also, there are some MM 2.1 templates that have no MM 3 equivalent. Also, things like message and digest headers and footers that are MM 2.1 list attributes that are templates in MM 3, although import21 tries to handle those.
So are how these templates showing up on my Mailman 3 servers? They show up in /opt/mailman/mm/var/templates/lists/listname/en/. I have a client whose old footer template from Mailman 2 still showing up in list messages. He then created a custom footer template via Affinity (same thing happen in Postorius) and both custom footers were being included in list messages.
--
Brian Carpenter Harmonylists.com Emwd.com
On 10/11/20 8:26 AM, Brian Carpenter wrote:
On 10/11/20 11:06 AM, Mark Sapiro wrote:
Also, things like message and digest headers and footers that are MM 2.1 list attributes that are templates in MM 3, although import21 tries to handle those.
So are how these templates showing up on my Mailman 3 servers? They show up in /opt/mailman/mm/var/templates/lists/listname/en/. I have a client whose old footer template from Mailman 2 still showing up in list messages. He then created a custom footer template via Affinity (same thing happen in Postorius) and both custom footers were being included in list messages.
As I said, (msg|digest)_(header|footer) are MM 2.1 list attributes, not templates. Those, and I think only those, are converted to var/templates/lists/listname/lc/ templates by import21.
If I understand you correctly, after creating a custom template in Postorius or Affinity, both that and the old template were included in delivered posts. I don't understand that. For Postorius at least, when a custom template is created, it sets the URI for the template in core to point to Postorius to get the template. the old template in var/templates/lists/listname/lc/ should not be referenced.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 10/11/20 11:40 AM, Mark Sapiro wrote:
As I said, (msg|digest)_(header|footer) are MM 2.1 list attributes, not templates. Those, and I think only those, are converted to var/templates/lists/listname/lc/ templates by import21.
I forgot to say thank you for the above information. That makes sense of what I am seeing with imports.
-- Brian Carpenter Harmonylists.com Emwd.com
participants (2)
-
Brian Carpenter
-
Mark Sapiro