Re: [Mailman-Users] Mailman Splitting Subject

I saw that, but it is not really an answer as te problem is that it is inserting a TAB, not whitespace, and that is what is causing the problem. A carriage return and spaces would be fine. The tab is what most clients cannot handle.
----- Original Message ----- Subject: Re: [Mailman-Users] Mailman Splitting Subject Date: Thu, 24 May 2007 14:21:53 -0700 (PDT) From: cpz@tuunq.com (Carl Zwanzig)
In a flurry of recycled electrons, Lloyd F. Tennison wrote:
This was just discussed last week (or the week before). In short, the subject-line folding is correct, the mail client behavour is not. Please check this list's archives for a discussion.
z!
Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman- users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman- users/lists%40viplist.us
Security Policy: http://www.python.org/cgi-bin/faqw- mm.py?req=show&file=faq01.027.htp
Thanks.
Lloyd F. Tennison lloyd@viplist.us
No trees were harmed in the transmission of this message. However, a rather large number of electrons were temporarily inconvenienced.

- Lloyd F. Tennison <lists@viplist.us>:
I saw that, but it is not really an answer as te problem is that it is inserting a TAB, not whitespace,
Tab is a whitespace character, isn't it?
-- Ralf Hildebrandt (i.A. des IT-Zentrums) Ralf.Hildebrandt@charite.de Charite - Universitätsmedizin Berlin Tel. +49 (0)30-450 570-155 Gemeinsame Einrichtung von FU- und HU-Berlin Fax. +49 (0)30-450 570-962 IT-Zentrum Standort CBF send no mail to plonk@charite.de

Lloyd F. Tennison writes:
Carl's reply notwithstanding, Barry considers this "something we should do something about".
It's almost a trivial patch; in the email/Generator.py file find the keyword argument continuation_ws='\t' to the Header initialization and change the '\t' to ' '.
Unfortunately, on my Debian system that is in the main Python library, and I will not mess with that (nor recommend that you do so). If you have one of the Mailman installations with a self-contained email package (ie, in .../mailman/Mailman/mailman), then it is probably safe to do that surgery. I believe you'll have to restart Mailman, but Python will pick up the change automagically.

Stephen J. Turnbull wrote:
This is an incomplete solution. See Mailman/Handlers/CookHeaders.py.
You really need to patch the prefix_subject function in that module by changing
ws = '\t'
in
# Try to figure out what the continuation_ws is for the header
if isinstance(subject, Header):
lines = str(subject).splitlines()
else:
lines = subject.splitlines()
ws = '\t'
if len(lines) > 1 and lines[1] and lines[1][0] in ' \t':
ws = lines[1][0]
to
ws = ' '
or possibly replace that whole piece with just
ws = ' '
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

- Lloyd F. Tennison <lists@viplist.us>:
I saw that, but it is not really an answer as te problem is that it is inserting a TAB, not whitespace,
Tab is a whitespace character, isn't it?
-- Ralf Hildebrandt (i.A. des IT-Zentrums) Ralf.Hildebrandt@charite.de Charite - Universitätsmedizin Berlin Tel. +49 (0)30-450 570-155 Gemeinsame Einrichtung von FU- und HU-Berlin Fax. +49 (0)30-450 570-962 IT-Zentrum Standort CBF send no mail to plonk@charite.de

Lloyd F. Tennison writes:
Carl's reply notwithstanding, Barry considers this "something we should do something about".
It's almost a trivial patch; in the email/Generator.py file find the keyword argument continuation_ws='\t' to the Header initialization and change the '\t' to ' '.
Unfortunately, on my Debian system that is in the main Python library, and I will not mess with that (nor recommend that you do so). If you have one of the Mailman installations with a self-contained email package (ie, in .../mailman/Mailman/mailman), then it is probably safe to do that surgery. I believe you'll have to restart Mailman, but Python will pick up the change automagically.

Stephen J. Turnbull wrote:
This is an incomplete solution. See Mailman/Handlers/CookHeaders.py.
You really need to patch the prefix_subject function in that module by changing
ws = '\t'
in
# Try to figure out what the continuation_ws is for the header
if isinstance(subject, Header):
lines = str(subject).splitlines()
else:
lines = subject.splitlines()
ws = '\t'
if len(lines) > 1 and lines[1] and lines[1][0] in ' \t':
ws = lines[1][0]
to
ws = ' '
or possibly replace that whole piece with just
ws = ' '
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (5)
-
cpz@tuunq.com
-
Lloyd F. Tennison
-
Mark Sapiro
-
Ralf Hildebrandt
-
Stephen J. Turnbull