Here you go. I wrote this real quick. Seems to work for me.
<cfset path=expandpath("test.txt")>
<cffile action="READ" file="#path#" variable="test">
<cfoutput>#test#</cfoutput>
<hr color="#ff0000">
<cfset cr = chr(13) & chr(10)>
<cfoutput>
<cfloop from="1" to="#len(test)#" index="c">
<cfset x=#mid(test,c,2)#>
#x#
<cfif x EQ cr> - HERE</cfif><br>
</cfloop>
</cfoutput>
David Schmidt
----- Original Message -----
From: "Jochem van Dieten" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, January 14, 2002 4:55 PM
Subject: Re: Parsing an Email Line By Line
> 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