It looks like it should...
Howie
----- Original Message -----
From: "Greg Silver" <[EMAIL PROTECTED]>
To: "inFusion Support List" <[EMAIL PROTECTED]>
Sent: Friday, December 14, 2001 9:39 AM
Subject: RE: [iMS] Multiple recipents on the same internal domain.
> well wouldnt this work?
>
> <!--- first we get a list of the files to delete --->
>
> <cfquery name="emailfiles" datasource="#application.maildsn#">
> select filename from mail where messageid in (#PopDelete#)
> </cfquery>
>
> <!--- delete all of the files --->
>
> <cfoutput query="emailfiles">
>
> <cfquery name="checkothers" datasource="#application.maildsn#">
> select messageid from mail where filename='#filename#'
> </cfquery>
>
> <cfif checkothers.recordcount is 1>
> <cfif fileexists(filename)>
> <CFTRY>
> <cffile action="delete" file="#filename#">
> <CFCATCH>
> </CFCATCH>
> </CFTRY>
> </cfif>
> </cfif>
>
> </cfoutput>
>
==^=======================================================
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/
Note: You are subscribed as [email protected]
==^=======================================================