Not sure if this helps but you can modify the headers in your RCPT template also.  For 
example:

<cfif smtpto is "[EMAIL PROTECTED]">
<insetheader To="tac">
</cfif>

If you do this then you don't have to modify the .mail file.

Regards,

Howie

----- Original Message ----- 
From: "Tac/Smokescreen" <[EMAIL PROTECTED]>
To: "inFusion Support List" <[EMAIL PROTECTED]>
Sent: Saturday, June 02, 2001 7:57 AM
Subject: [iMS] manipulating the .mail file


> 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