Neil H. wrote:

> I am attempting to parse an email line by line.  I found this code from
> CFVault and it seems pretty proven:
> 
> <CFLOOP List="#file_content#" Index="rc" Delimiters="#Chr(10)#">
>     <CFOUTPUT>
>     #rc#<BR>
>     </CFOUTPUT>
>   </CFLOOP>
> 
> 
> However, it appears that the output is truncated to 77 characters.  This
> seems very strange but maybe someone has insight about it?


What Content-Transfer-Encoding is used? If quoted-printable, read RFC 
1521 and you will know how to decode it. If 7bit or 8bit there is no 
need to decode.

Is the message in HTML? If so, forget about linebreaks. Remove them all 
and rebuild your content from scratch.

In any other case the linebreaks are probably put there by the sending 
application, which probably means they are supposed to be there. The 
big, bad exception is if a MTA put it in somewhere halfway. In that case 
you are probably lost unless you have some other information to rebuild 
the email.

Jochem
______________________________________________________________________
Why Share?
  Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to