-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Templates not used/found #698
Comments
With the mailman-core section of docker-compose.yaml having a volume, you can add files directly to this directory on the docker host (i.e no need to place files inside the container directly.
Note, you will need to create the site/en directories. Then I created these files:
The empty (zero byte) files are for ones where I wanted to overwrite the defaults but having nothing shown for those now. There are other folders you can create if you want domain wide or specific list templates, but site is perhaps the easiest for starting out. It was a fun exercise writing new templates. Whilst there are no option for html and images, you can embedded special characters and still try to make the emails more useful for moderators etc. If you leave a space at the start it won't wrap the text. Here is an example of the list:admin:notice:subscribe.txt file:
There are links about the place explaining the template system further if needed and the directory structure for where to place things under the templates directory. Oddly I haven't been able to make the new-list template be used, however perhaps this might work if using the API to create the list and using the right option to notify the new owner. |
I obviously don’t want to create text files, but get them from the database which I manage through mailman-web.
|
I'm not sure how that would be obvious but yes there are other ways to configure templates. Via mailman-web: postorius/domains/ there is a Templates button, and from each list there is a New Template button. Via API: https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/rest/docs/templates.html If you don't configure anything there should be defaults for all types of emails. Perhaps you can advise which context (domain or list) you have used to set a template currently, and if your not receiving any email at all, or if you are received the default (non-custom) emails. It would be good to ensure you are receiving the default emails before attempting to add templates emails to override the defaults. There may be some issues surrounding your language setting also, there are defaults for most languages, but I've only ever used the English ones. Perhaps there is something here: https://lists.mailman3.org/archives/list/[email protected]/thread/QCA3B7WCPAT3WUAT526PPVHBWUBBXK6D/ Or if you search that list you may find more help. This potentially isn't a problem related specifically only to this docker setup for Mailman. Good luck with your setup journey 😄 |
Defined where? There are 2 places you can do, in the filesystem and also via Postorius. Both have been working before on the docker setup. |
Tag/version of Container Images
Choose from: 0.4.*
Standard docker install here. Defined some templates for mails, e.g. a welcome messge, but that never gets sent. Looks like mailman-core can not access the templates.
How must this be configured to work properly?
The text was updated successfully, but these errors were encountered: