On 9/15/19 3:33 AM, Ugnius S wrote:
This noticed only on HTML text messages. If message comes in HTML the header does not add extra <enter> new line, new paragraph and footer as well. For example if message body has no additional, list's decorated message looks next:
TEST HEADER _____________________Hello,
text text text, pictures, text
regards Ugnius____________________ TEST FOOTER
I have tried to add more empty lines in "The footer for a regular (non-digest) message.", but mailman removes these empty lines. Work around is put dot "." and then several empty lines.
The stripping of leading whitespace from templates created in Postorius is https://gitlab.com/mailman/postorius/issues/301 to be fixed by https://gitlab.com/mailman/postorius/merge_requests/434
Mark, I have found Your post about HTML headers and footers: https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/thread/K... YES, that works good, I have tested it, but only in cases if message comes in HTML. If sender sends plain text message, mailman adds footer with all HTML code:
<BR>__________________<BR> <B> LIST NAME </B>
Could it be possible that decorate.py would recognise message and if it has HTML text body, then just would add header/footer and if not (if message body is plain text) , then would strip header/footer "html to plain text" may removing html code from it?
As it says in the post you reference:
message and digest footers and headers are always added either to a MIME text/plain message body or as separate MIME text/plain parts. HTML tags will just be displayed as plain text and will not be rendered as HTML.
Also see https://wiki.list.org/x/4030707.
-- Mark Sapiro mark@msapiro.net The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan