I need to manipulate the .mail file, and am having a Cold Fusion problem
related to line breaks.  I want to make a simple replacement -- if I see
"To: [EMAIL PROTECTED]" I want to replace it with "To: Tac" (that's not
really what I want to do, but it'll work for my example).

My code is

<CFFILE ACTION=READ ... VARIABLE="F">
<CFSET F = Replace(F,"To: [EMAIL PROTECTED]", "To: TAC")>
<CFFILE ACTION="WRITE" ...>

The original and output different in their end of line treatment -- CRLF v.
CR, I think.  Would "readbinary" work?  Is there another approach?

Another situation where a quick perl snippet would be so easy!

Tac



========================================================================
     This list server is Powered by iMS
   'The Swiss Army Knife of Mail Servers'
   --------------------------------------
To leave this list please complete the form at 
http://www.coolfusion.com/iMSSupport.cfm
Need an iMS Developer license?  Sign up for a free license here:
http://www.coolfusion.com/iMSDevelopers.cfm
List archives: http://www.mail-archive.com/infusion-email%40eoscape.com/
========================================================================

Reply via email to