If the scripters out there are keen to modify "html to body and strip", 
would some kind and capable person like to address the issue of the 
script choking when it encounters html mail which contains an enclosure.  
There are obviously workarounds, but it would be nice if the script could 
handle these situations.  Btw, I've found TexEdit to be an excellent 
product.
Mick

>From: jwq <[EMAIL PROTECTED]>
>Subject: Re: script help (modifying html to body and strip
>
>
>On Sun, 20 Mar 2005 13:06:12 -0800 chris wrote:
>[Edited]
>> A couple of people forwarded it to me.
>
> I received a copy too and ran into the same problem (require TexEdit;
>don't have it).
>
>> I'm guessing the reason for the blank lines is the sudden loss of HTML 
>> code. I bet if you open the same HTML attachment in texedit and run its 
>> HTML strip ability, you will find the blank lines are present at that 
>> point. 
>
> Maybe. Your original script concatenates the original message body and
>the contents of the first enclosure with two returns. What if the
>original message body is empty or contains only white space lines? Then
>you have a set of leading blank lines. The same problem applies to
>stripping leading empty lines from TexEdit - what if a leading line
>contains only white space? Then you end up with non-empty leading blank
>lines.
>
>> Adding a command to strip line feeds (if TexEdit has something 
>> along those lines) may get rid of the blanks. I'd know better if I 
>> bothered to download TexEdit and look into the issue.
>
> I wrote some AppleScript functions (perhaps you noticed? :-) to strip
>leading lines containing only white space. I'm sure you can pop them
>into the right place in the script just as well as I can, and probably
>much faster ('cause I'm a bit busy right now).
>
>jwq

___________________________________________________________________________
To unsubscribe send a mail message with a SUBJECT line of "unsubscribe" to
<[EMAIL PROTECTED]>  or  <[EMAIL PROTECTED]>

Reply via email to