On Jun 3, 2008, at 1:51 PM, Les Schaffer wrote:
ravi wrote:

Given that Mailman is Python, we can hack it to be cleverer about this sort of thing... that's what I meant in my earlier message.

its on my todo list with Hans this summer to customize the Utah archive formatting if its simple enough to do. i have a funny feeling though that Mailman is pretty limited in its re-formatting options, but i will look thru the code to see whats up. if ravi or others have links to working modules for Mailman that do this, i will test them on my machine and then try them out with the Utah server.


Les,

I run a bunch of Mailman lists. I will look into the code to see how this can be handled... I guess ideally, the algorithm for the archiver would be:

For each incoming message:
    If Content-Type is text/plain:
For each line not prefaced by ">": // i.e., leave quoted text alone
            If length > 78:
                Add line break at 78
                and/or reformat paragraph

The easier way would be to get rid of the <PRE> tags that wrap around the message, and let the browser handle the wrap, but then without the <PRE>, formatted text may render badly. Though a fixed-width font and inserting HTML <br/> tags at line breaks would probably take care of the majority of such formatting.

Send me your thoughts/comments and I can start looking at the code,

        --ravi


_______________________________________________
pen-l mailing list
[email protected]
https://lists.csuchico.edu/mailman/listinfo/pen-l

Reply via email to