Max Mehl 2b5a486a4b | 11 months ago | |
---|---|---|
assets | 11 months ago | |
lists | 11 months ago | |
templates | 11 months ago | |
.gitignore | 3 years ago | |
README.md | 3 years ago |
This repository contains the default templates we use for our lists (in templates/
) and some custom ones for specific lists (in lists/
).
Most of the templates in the templates/
folder are Mailman defaults, but some important ones have been changed by us to look nicer and/or to contain additional information.
Under lists/
, you will find templates for some special mailing lists like the newsletter. You can translate everything in the en
folder and put your contribution under a separate folder named after your language code.
If you intent to translate them (which is highly welcome!), please note:
<!-- fsfe rev 1 -->
. This may help you to find out whether the file in your language is on the same state content-wise as the English original.Thank you for your contribution!
The template folder of this repository is symlinked: /var/lib/mailman/templates -> /etc/mailman/mailman-templates-git/templates
.
For the custom list templates, these are symlinked as well, for example: /var/lib/mailman/lists/newsletter-en/en -> /etc/mailman/mailman-templates-git/lists/newsletter-all/en
. For a newly added language, this can be done by (exmaple for nl (Dutch), so replace for new language code):
for list in /var/lib/mailman/lists/newsletter-*; do
ln -s /etc/mailman/mailman-templates-git/lists/newsletter-all/nl $list/nl
done
Our custom templates require some server-side changes in order to make them work.
In Apache config for fsfe.org, add
# Allow CORS for fsfe.org domains
SetEnvIf Origin ^(https?://.+\.fsfe\.org(?::\d{1,5})?)$ CORS_ALLOW_ORIGIN=$1
Header append Access-Control-Allow-Origin %{CORS_ALLOW_ORIGIN}e env=CORS_ALLOW_ORIGIN
Header merge Vary "Origin"
In /usr/lib/mailman/Mailman/Utils.py
, add to _badwords = [
:
'<link(?! href="https://fsfe.org/.*")',