Re: [Mailman-Users] Any way to disable wrapping of the subject header?

2008-06-26 Thread Adam Nielsen

This has been discussed before on this and other lists and is being
discussed right now on [EMAIL PROTECTED] (see
).


Ah ok, that looks promising.  Sorry, I did Google around a fair bit but 
I guess I was using the wrong keywords...


Does anyone know if there's a way to do this, or whereabouts in the code 
I should start looking?


Search for '\t' in Mailman/Handlers/CookHeaders.py. Some (most)
occurrences can be replaced with ' '.

I think the only one that can't be changed is

if len(lines) > 1 and lines[1] and lines[1][0] in ' \t':
ws = lines[1][0]



Excellent, thanks for that!  I'll try it now.

Cheers,
Adam.
--
Mailman-Users mailing list
Mailman-Users@python.org
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


Re: [Mailman-Users] Any way to disable wrapping of the subject header?

2008-06-26 Thread Mark Sapiro
Adam Nielsen wrote:
>
>Mailman seems to like wrapping the e-mail subject when it gets too long 
>(78 chars I think.)  Because this causes problems with many common 
>e-mail clients (Outlook, Thunderbird, etc.) is there any way to disable 
>the wrap?


Not in Mailman. This is done in the underlying Python email library.


>The problem is that after "folding" the line (as RFC822 puts it) Mailman 
>uses a tab character to indent the line below.  The RFC states that the 
>CRLF+whitespace combination should be replaced by just the whitespace 
>character used - and since Mailman uses CRLF+tab, after unfolding we end 
>up with a tab character in the middle of the e-mail subject.
>
>Thunderbird displays this using ASCII encoding (so you get a little 
>round circle in the middle of the subject) whereas Outlook displays 
>nothing at all (so you get people pointing out that you forgot to put a 
>space in between those words.)  Some MTAs seem to expand the tab into 
>eight spaces, leaving a large gap in the middle of the subject instead.
>
>You can see examples of these in the messages posted to the list 
>yesterday, e.g. "Apache,mailman and ScriptAlias - not as documented"


This has been discussed before on this and other lists and is being
discussed right now on [EMAIL PROTECTED] (see
).


>The easiest solution (for me) would be to just disable folding of that 
>header, or alternatively to replace the tab with a space, so that e-mail 
>clients display a single space as originally intended by the author 
>instead of doing something funny with the tab character.
>
>Does anyone know if there's a way to do this, or whereabouts in the code 
>I should start looking?


Search for '\t' in Mailman/Handlers/CookHeaders.py. Some (most)
occurrences can be replaced with ' '.

I think the only one that can't be changed is

if len(lines) > 1 and lines[1] and lines[1][0] in ' \t':
ws = lines[1][0]

-- 
Mark Sapiro <[EMAIL PROTECTED]>The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
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