FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Controlling Word-Wrapping on Piped Email
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Controlling Word-Wrapping on Piped Email [message #162833 is a reply to message #162831] Fri, 30 July 2010 00:55 Go to previous message
wittrs is currently offline  wittrs   United States
Messages: 134
Registered: August 2009
Karma:
Senior Member
Here is a regex string that works better. Just stick this in the administrative control panel where you have the maillist rules.

replace mask: '/([^\r\n]{50,})\r?\n(?!\r|\n)/'

replace with: "$1 "

(include a space after the 1.)

This allows you to eliminate word wrapping from incoming emails for lines 50 characters or more, by killing off the line breaks. If under 50, the line breaks stay put. This allows signature lines to be preserved (in practice) while allowing message bodies to fill up the container. I obviously did not write this. A dude on another list did. Just passing it along. Preliminary tests show it is doing the trick. The 50-character benchmark is, of course, not perfect. An intentional single-line break of a short sentence will defeat it, as will an extremely long signature line. But in practice it seems to do the job just fine.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Can you wrap text around an image? (RESOLVED)
Next Topic: Hits to non-existent pages
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 11:02:06 GMT 2024

Total time taken to generate the page: 0.05135 seconds