[Mailman-Users] Line breaks in monthly reminder emails
I don't think I've seen this discussed before although it's hard to search for, so maybe it has been and I just can't find it. My monthly reminder texts (cronpass.txt) are heavily customized. The only line breaks in the cronpass.txt file are at the ends of paragraphs, etc. When the reminders go out, they wrap around 70 characters on the desktop, which is fine. It looks as if Mailman has inserted a hard line break there. On my phone (Gmail app), they wrap at 70 characters horizontally, but on a narrower vertical screen, it's pretty ugly, because of the hard line break at 70 characters: -- This is a reminder, sent out once a month, about your discussion list subscriptions at the XX (xxx.xx.xxx) website. You can visit https://xxx.xx.xxx/x to change your subscription settings for any list. You will need to login to the website first using the "Sign in" link at the top right of any page. Be sure that you login as the user whose email address matches your list subscription. -- The only solution I can think of is to insert hard breaks in cronpass.txt around the 50-character mark but I'm hoping there's a better way. (I know, upgrade to Mailman 3. It's slowly working its way up the to-do list.) This is Mailman 2.1.38 on cPanel. -- === Russell Clemings === -- Mailman-Users mailing list -- mailman-users@python.org To unsubscribe send an email to mailman-users-le...@python.org https://mail.python.org/mailman3/lists/mailman-users.python.org/ Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/ https://mail.python.org/archives/list/mailman-users@python.org/
[Mailman-Users] Re: Line breaks in monthly reminder emails
On 12/1/22 15:37, Russell Clemings wrote: The only solution I can think of is to insert hard breaks in cronpass.txt around the 50-character mark but I'm hoping there's a better way. (I know, upgrade to Mailman 3. It's slowly working its way up the to-do list.) This is Mailman 2.1.38 on cPanel. If you have the ability to patch Mailman's cron/mailpasswds, this will do it. ``` --- old/cron/mailpasswds2018-06-17 23:47:34 + +++ new/cron/mailpasswds2022-12-01 23:51:14 + @@ -203,7 +203,7 @@ 'useraddr': addr, 'exreq' : sitereq, 'owner' : siteowner, - }, lang=poplang) + }, lang=poplang, raw=True) # Coerce everything to Unicode text = tounicode(text, enc) table = [tounicode(_t, enc) for _t in table] ``` Otherwise, I think inserting hard returns is it. -- Mark Sapiro The highway is for gamblers, San Francisco Bay Area, Californiabetter use your sense - B. Dylan -- Mailman-Users mailing list -- mailman-users@python.org To unsubscribe send an email to mailman-users-le...@python.org https://mail.python.org/mailman3/lists/mailman-users.python.org/ Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/ https://mail.python.org/archives/list/mailman-users@python.org/
[Mailman-Users] Re: Line breaks in monthly reminder emails
I do, and as luck would have it I already have some modifications on that file, so I'll give it a try. On Thu, Dec 1, 2022 at 3:56 PM Mark Sapiro wrote: > On 12/1/22 15:37, Russell Clemings wrote: > > > > The only solution I can think of is to insert hard breaks in cronpass.txt > > around the 50-character mark but I'm hoping there's a better way. (I > know, > > upgrade to Mailman 3. It's slowly working its way up the to-do list.) > > > > This is Mailman 2.1.38 on cPanel. > > > If you have the ability to patch Mailman's cron/mailpasswds, this will > do it. > ``` > --- old/cron/mailpasswds2018-06-17 23:47:34 + > +++ new/cron/mailpasswds2022-12-01 23:51:14 + > @@ -203,7 +203,7 @@ >'useraddr': addr, >'exreq' : sitereq, >'owner' : siteowner, > - }, lang=poplang) > + }, lang=poplang, raw=True) > # Coerce everything to Unicode > text = tounicode(text, enc) > table = [tounicode(_t, enc) for _t in table] > ``` > Otherwise, I think inserting hard returns is it. > > -- > Mark Sapiro The highway is for gamblers, > San Francisco Bay Area, Californiabetter use your sense - B. Dylan > > -- > Mailman-Users mailing list -- mailman-users@python.org > To unsubscribe send an email to mailman-users-le...@python.org > https://mail.python.org/mailman3/lists/mailman-users.python.org/ > Mailman FAQ: http://wiki.list.org/x/AgA3 > Security Policy: http://wiki.list.org/x/QIA9 > Searchable Archives: > https://www.mail-archive.com/mailman-users@python.org/ > https://mail.python.org/archives/list/mailman-users@python.org/ > -- === Russell Clemings === -- Mailman-Users mailing list -- mailman-users@python.org To unsubscribe send an email to mailman-users-le...@python.org https://mail.python.org/mailman3/lists/mailman-users.python.org/ Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/ https://mail.python.org/archives/list/mailman-users@python.org/
[Mailman-Users] Re: Line breaks in monthly reminder emails
Mark Sapiro writes: > If you have the ability to patch Mailman's cron/mailpasswds, this will > do it. Possibly more flexible (but harder to implement and dependent on user MUAs) would be to use format=flowed in Content-Type. -- Mailman-Users mailing list -- mailman-users@python.org To unsubscribe send an email to mailman-users-le...@python.org https://mail.python.org/mailman3/lists/mailman-users.python.org/ Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/ https://mail.python.org/archives/list/mailman-users@python.org/