At 08:39 -0500 2/11/08, [EMAIL PROTECTED] wrote:
>At 09:05 -0700 2008/02/09, Doug McNutt wrote:
> >watch for the start of a message and begin replacing /\r\s+/ with a space 
> >until a blank line is found and then switch to copy mode
>
>Thanks for the suggestion... But wouldn't this get rid of the precious 
>"From:", "To:", "Date:", and "Subject:" headers too?

I don't think so. I think I actually misunderstood the original request and 
thought that the intent was to change formatting while saving all of the 
information.  The regex, which I actually use in perl running on a qmail 
server, serves to make all headers single lines. It doesn't remove any 
information.

If spam is something you care about the "From:", "To:", "Date:", and "Subject:" 
headers are always faked. Received: headers are also faked but at least one 
will be real.

While looking at a whole message that is not in a line by line mode all headers 
immediately follow a lineend with no spaces. A lineend-whitespace before the 
blank line that starts a message body can only be one of those continuation 
things.

After BBEdit reads in a mailbox the line ends are always converted to 0D 
characters and referred to as \r. In transmission mode over the internet they 
are 0D0A pairs. In a UNIX server using Linux or BSD they are just 0A, \n. And 
just to make life interesting the meanings of \n and \r are reversed in the 
classic MacOS. I donno if BBEdit for OS 9 makes that change.

-- 
--> If you are presented a number as a percentage, and you do not clearly 
understand the numerator and the denominator involved, you are surely being 
lied to. <--

-- 
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to