URL-lines in templates get folded
Hi,
I’ve added links to some templates to give owners and moderators shortcuts to the postorius UI for moderation tasks, e.g., I’ve added
https://lists.xxx.de/postorius/lists/$list_id/held_messages <https://lists.xxx.de/postorius/lists/$list_id/held_messages>
Unfortunately those lines seem to exceed a certain limit and get folded, so that they appear as, e.g.
https://lists.xxx.de/postorius/lists/$list_id/held_ <https://lists.xxx.de/postorius/lists/$list_id/held_> messages
(or similar) and are not directly useful.
Do you have any suggestion for this situation?
On 10/18/22 06:52, Frank Steinberg wrote:
Hi,
I’ve added links to some templates to give owners and moderators shortcuts to the postorius UI for moderation tasks, e.g., I’ve added
https://lists.xxx.de/postorius/lists/$list_id/held_messages <https://lists.xxx.de/postorius/lists/$list_id/held_messages>
Unfortunately those lines seem to exceed a certain limit and get folded, so that they appear as, e.g.
https://lists.xxx.de/postorius/lists/$list_id/held_ <https://lists.xxx.de/postorius/lists/$list_id/held_> messages
(or similar) and are not directly useful.
How are you editing the templates? I.e., are you editing them via Postorius or by putting them in Mailman's var/templates/ directory or ??
Also are those lines of the form
https://... <https://...>
what you are entering or is that duplication and artifact of your mail client? You should be entering just a URL either with or without angle brackets, but not both.
Is the folding actually in the raw message or is it an artifact of the mail client viewing the message?
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Am 18.10.2022 um 18:37 schrieb Mark Sapiro <mark@msapiro.net>:
On 10/18/22 06:52, Frank Steinberg wrote:
Hi, I’ve added links to some templates to give owners and moderators shortcuts to the postorius UI for moderation tasks, e.g., I’ve added https://lists.xxx.de/postorius/lists/$list_id/held_messages <https://lists.xxx.de/postorius/lists/$list_id/held_messages> Unfortunately those lines seem to exceed a certain limit and get folded, so that they appear as, e.g. https://lists.xxx.de/postorius/lists/$list_id/held_ <https://lists.xxx.de/postorius/lists/$list_id/held_> messages (or similar) and are not directly useful.
How are you editing the templates? I.e., are you editing them via Postorius or by putting them in Mailman's var/templates/ directory or ??
I am using the docker containers and have been putting files into the directory mapped to var/templates/site/.
Also are those lines of the form
https://... <https://...>
I am sorry, my Mail program changed the encoding here. In fact the template files just contain the plain URL. No blanks no angle brackets. Just one URL containing the $list_id variable.
what you are entering or is that duplication and artifact of your mail client? You should be entering just a URL either with or without angle brackets, but not both.
Is the folding actually in the raw message or is it an artifact of the mail client viewing the message?
The folding appears in the raw message sent by Mailman and put into the users INBOX.
I thought there could be a kind of filter in Mailmans mailout processing that cares for line breaks in order to not exceed approx. 75 chars per line?
I will do some more testing tomorrow (european time).
On 10/18/22 10:45, Frank Steinberg wrote:
The folding appears in the raw message sent by Mailman and put into the users INBOX.
I thought there could be a kind of filter in Mailmans mailout processing that cares for line breaks in order to not exceed approx. 75 chars per line?
Some but not all templates are wrapped at column 70 by the function at https://gitlab.com/mailman/mailman/-/blob/master/src/mailman/utilities/strin.... Those that are wrapped are:
list:admin:action:subscribe list:admin:action:unsubscribe list:admin:notice:pending list:user:notice:goodbye list:user:notice:hold list:user:notice:no-more-today list:user:notice:probe list:user:notice:refuse list:user:notice:warning list:user:notice:welcome
Others are not. For those that are wrapped, there are techniques to avoid wrapping. In particular, lines beginning with whitespace aren't wrapped so if you put your long URL preceded by a space, all on one line it won't wrap.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Frank Steinberg
-
Mark Sapiro