the problem I found of having one copy is that when you get a lot of 
traffic you will make an extra query under a large table (mail table) just 
to check if the file is in use by other user.

Guillermo

At 09:39 AM 12/14/2001 -0500, you wrote:
>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>
>
>-----Original Message-----
>From: Howie Hamlin [mailto:[EMAIL PROTECTED]]
>Sent: Friday, December 14, 2001 9:26 AM
>To: inFusion Support List
>Subject: Re: [iMS] Multiple recipents on the same internal domain.
>
>
>This is NOT and iMS issue.  iMS is doing as advertised.  The deletion of
>mail files is done by CFML when a user deletes a message.
>You need to look over the code in the QUIT template to see what's happening.
>If you don't want to share mail files among users then
>you need to make copies of the mail from within your DATA template.
>
>Howie
>
>----- Original Message -----
>From: "Greg Silver" <[EMAIL PROTECTED]>
>To: "inFusion Support List" <[EMAIL PROTECTED]>
>Sent: Friday, December 14, 2001 8:41 AM
>Subject: [iMS] Multiple recipents on the same internal domain.
>
>
> > There was something mentioned about this eariler this week. Well I actualy
> > just ran into it.
> >
> > iMS is only creating ONE .mail file for email sent to 2+ addresses. When a
> > user checks the email and deletes it, the only thing the other users see
>is
> > the information stored in the MAIL table.
> >
> > Just letting you know howie..
> >
> >
> >
> > --Greg
> >
==^=======================================================
     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]
==^=======================================================


Reply via email to