[Mailman-Users] Mailman Splitting Subject

Mark Sapiro msapiro at value.net
Fri Jun 1 01:20:24 CEST 2007


Stephen J. Turnbull wrote:
>
>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 ' '.


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 at value.net>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan



More information about the Mailman-Users mailing list