Daniel Novotny wrote:
>
>we have stumbled upon a problem, that in msg_footer,
>Mailman discards the space at the end of the signature delimiter "-- ",
>which should be two dashes and space,
>according to http://www.guckes.net/mail/sig.etiquette.html#sigdashes
>
>the code (Mailman/Handlers/Decorate.py) says
> text = re.sub(r' *\r?\n', r'\n', template % d)
>so all the spaces before newline are eaten by the regex:
>is there any specific reason to strip the spaces?
>The previous version of mailman just changed \r\n to \n ...
>
>We want to correct the signature problem, but we don't want any
>regression...
Yes. We strip the spaces because we now preserve format=flowed in the
Content-Type: header, but we don't want to flow the footer. But, we
went too far in stripping the space from a signature leadin.
Change the "text =" line above to
text = re.sub(r'(?m)(?<!^--) +(?=\n)', '',
re.sub(r'\r\n', r'\n', template % d))
This fix has been committed for the next release.
--
Mark Sapiro <[EMAIL PROTECTED]> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
------------------------------------------------------
Mailman-Users mailing list
[email protected]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe:
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Security Policy: http://wiki.list.org/x/QIA9