Mailman3 people --
I created a new list, and used postorius to create a template for " list:user:notice:welcome". I then used the mass subscription feature to add myself to the list, having checked "pre-confirmed", "pre-approved", and "pre-verified".
I received a welcome message that appears to be the default welcome message. It certainly wasn't what I put into my template.
Any suggestions on how I get mailman to use my template? Things I might be doing wrong?
Thanks!
-- Steve
On 2/17/22 08:04, Stephen Daniel wrote:
Mailman3 people --
I created a new list, and used postorius to create a template for " list:user:notice:welcome". I then used the mass subscription feature to add myself to the list, having checked "pre-confirmed", "pre-approved", and "pre-verified".
I received a welcome message that appears to be the default welcome message. It certainly wasn't what I put into my template.
Any suggestions on how I get mailman to use my template? Things I might be doing wrong?
What is your setting for POSTORIUS_TEMPLATE_BASE_URL? If you create a
full URL by appending
/api/templates/list/list.example.com/list:user:notice:welcome
to that
where list.example.com
is the actual list_id of your list, and go to
that URL, what do you get?
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
That pulls a 404 error. Thanks for the hint. I will investigate.
On Thu, Feb 17, 2022 at 11:49 AM Mark Sapiro <mark@msapiro.net> wrote:
On 2/17/22 08:04, Stephen Daniel wrote:
Mailman3 people --
I created a new list, and used postorius to create a template for " list:user:notice:welcome". I then used the mass subscription feature to add myself to the list, having checked "pre-confirmed", "pre-approved", and "pre-verified".
I received a welcome message that appears to be the default welcome message. It certainly wasn't what I put into my template.
Any suggestions on how I get mailman to use my template? Things I might be doing wrong?
What is your setting for POSTORIUS_TEMPLATE_BASE_URL? If you create a full URL by appending
/api/templates/list/list.example.com/list:user:notice:welcome
<http://list.example.com/list:user:notice:welcome> to that wherelist.example.com
is the actual list_id of your list, and go to that URL, what do you get?-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Fixed the POSTORIUS_TEMPLATE_BASE_URL. Doesn't fix the issue. I've been playing with wget, and no matter what I put, I keep getting a 404 error.
So: this works:
wget -O wget.out --user restadmin --password restpass ' http://localhost:8001/3.1/lists/list.example.com'
but this does not (404 error):
wget -O wget.out --user restadmin --password restpass ' http://localhost:8001/3.1/templates/list/list.example.com/list:user:notice:w... '
Is there a way to list all templates? Or all templates for a list?
On Thu, Feb 17, 2022 at 12:34 PM Stephen Daniel <swd@pobox.com> wrote:
That pulls a 404 error. Thanks for the hint. I will investigate.
On Thu, Feb 17, 2022 at 11:49 AM Mark Sapiro <mark@msapiro.net> wrote:
On 2/17/22 08:04, Stephen Daniel wrote:
Mailman3 people --
I created a new list, and used postorius to create a template for " list:user:notice:welcome". I then used the mass subscription feature to add myself to the list, having checked "pre-confirmed", "pre-approved", and "pre-verified".
I received a welcome message that appears to be the default welcome message. It certainly wasn't what I put into my template.
Any suggestions on how I get mailman to use my template? Things I might be doing wrong?
What is your setting for POSTORIUS_TEMPLATE_BASE_URL? If you create a full URL by appending
/api/templates/list/list.example.com/list:user:notice:welcome
<http://list.example.com/list:user:notice:welcome> to that wherelist.example.com
is the actual list_id of your list, and go to that URL, what do you get?-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
On 2/17/22 10:10, Stephen Daniel wrote:
Fixed the POSTORIUS_TEMPLATE_BASE_URL. Doesn't fix the issue. I've been playing with wget, and no matter what I put, I keep getting a 404 error.
So: this works:
wget -O wget.out --user restadmin --password restpass ' http://localhost:8001/3.1/lists/list.example.com'
but this does not (404 error):
wget -O wget.out --user restadmin --password restpass ' http://localhost:8001/3.1/templates/list/list.example.com/list:user:notice:w...
You are using Mailman core's REST API which is wrong. You need to get the template from Postorius. Maybe something like
http://localhost/postorius/api/templates/list/list.example.com/list:user:not...
Where http://localhost/postorius/ is the URL you use to access Postorius, maybe mailman3 instead of postorius.
Once you figure that out, POSTORIUS_TEMPLATE_BASE_URL is just the scheme and domain part of that.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Thanks for clarifying. All is working now!!!
On Thu, Feb 17, 2022 at 1:27 PM Mark Sapiro <mark@msapiro.net> wrote:
On 2/17/22 10:10, Stephen Daniel wrote:
Fixed the POSTORIUS_TEMPLATE_BASE_URL. Doesn't fix the issue. I've been playing with wget, and no matter what I put, I keep getting a 404 error.
So: this works:
wget -O wget.out --user restadmin --password restpass ' http://localhost:8001/3.1/lists/list.example.com'
but this does not (404 error):
wget -O wget.out --user restadmin --password restpass '
http://localhost:8001/3.1/templates/list/list.example.com/list:user:notice:w...
You are using Mailman core's REST API which is wrong. You need to get the template from Postorius. Maybe something like
http://localhost/postorius/api/templates/list/list.example.com/list:user:not...
Where http://localhost/postorius/ is the URL you use to access Postorius, maybe mailman3 instead of postorius.
Once you figure that out, POSTORIUS_TEMPLATE_BASE_URL is just the scheme and domain part of that.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
participants (2)
-
Mark Sapiro
-
Stephen Daniel