I wasn't sure if the ".." was there in the original or if the app somehow put the ".." there.

best, paul

At 07:16 AM 3/16/2004, you wrote:
The issue appears to be CF. It refuses to delete files with ".." in the name (i.e. 843 60th
> > >St..jpg). I've run into this recently. I could not find a way around it in CF. For now I delete them manually, but I believe a java object could easily be created to handle these.



------------------------------------------------------ Marc Lichtenfeld Senior Programmer/Technology Lead www.bigdough.com




-----Original Message----- From: Paul Smith [mailto:[EMAIL PROTECTED] Sent: Monday, March 15, 2004 11:06 PM To: inFusion Support List Subject: Re: [iMS] Problem with FusionMail 1.02 file attachments


Here ya go:


<cfif odsmime_query.recordcount gt 0>
<!--- does the directory exist? --->
    <cfif not directoryexists("#attachReadRoot#")>
       <cfdirectory action="create" directory="#attachreadroot#">
    </cfif>
    <cfif not directoryexists("#attachReadRoot##client.accountnum#\")>
       <cfdirectory action="create"
directory="#attachreadroot##client.accountnum#\">
    </cfif>
<!--- is there anything in there already? Clear out if RFC822 is 0
otherwise we need the attachment that's already there --->
<cfif RFC822 is 0>
    <cfdirectory action="list"
directory="#attachreadroot##client.accountnum#\" name="attlist">
    <cfoutput query="attlist">
  THIS IS LINE 64>>>>>>>     <cfif (name neq ".") and (name neq
"..")><cffile action="delete"
file="#attachreadroot##client.accountnum#\#name#"></cfif>
    </cfoutput>
</cfif>
<!--- OK...now decode the attachments --->
    <cfx_odsmime action="decode" file="#getmail.filename#" filelist="all"
overwrite="YES" decodedir="#attachreadroot##client.accountnum#\"
decodehtmlattachments="yes">
<!--- if RFC822 is not 0 then we need to cycle through the RFC822
attachments for the proper one --->
    <cfloop index="temp" from="1" to="#rfc822#">
       <cfx_odsmime action="decode"
file="#attachreadroot##client.accountnum#\#ODSMIME_RFC822#" filelist="all"
decodedir="#attachreadroot##client.accountnum#\" decodehtmlattachments="yes">
    </cfloop>
</cfif>

best, paul


At 08:35 PM 3/15/2004, you wrote:
>Could you send me a few of the lines of code near the line mentioned in
>the error message? I tried an attachment with a space on one of our
>development servers and it worked fine (CFMX 6.1 and FusionMail v2.7 beta).
>
>Regards,
>
>Howie
>
>----- Original Message -----
>From: "Paul Smith" <[EMAIL PROTECTED]>
>To: "inFusion Support List" <[EMAIL PROTECTED]>
>Sent: Monday, March 15, 2004 9:27 PM
>Subject: [iMS] Problem with FusionMail 1.02 file attachments
>
>
> > Any suggestions on the following error message?
> >
> > best, paul
> >
> > At 11:57 AM 3/15/2004, you wrote:
> > >We cannnot access any file attachments when using the web interface to
> > >the mail server. Looking at the error message that comes up (it's the
> same
> > >message
> > >for any piece of email with an attachment) it looks like there's a poorly
> > >named
> > >file in a Fusionmail subdirectory.
> > >
> > >here's the error text:
> > >========================================================
> > >Error Diagnostic Information
> > >Error processing CFFILE
> > >
> > >The path, 'c:\website\htdocs\FusionMail1\htdocs\attachments\149\843 60th
> > >St..jpg', is illegal. Path specifications cannot include
> > >'..'
> > >
> > >The error occurred while processing an element with a general identifier
> > >of (CFFILE), occupying document position (64:48) to
> > >(64:121) in the template file
> > >C:\WebSite\htdocs\FusionMail1\htdocs\readmessage.cfm.
> > >
> >
==^=======================================================
This list server is Powered by iMS  "The Swiss Army Knife of Mail Servers"
--------------------------------------------------------------------------------------
This list is provided as a free service.  Although we will try to address issues
in a timely manner, support via this list is not guaranteed.  If you require expedited
support then a support contract is required.  Support may be purchased from
http://www.coolfusion.com/commerce.  Details regarding support options may be reviewed
at: http://www.coolfusion.com/SupportOptions.cfm
--------------------------------------------------------------------------------------
To leave this list please complete the form at http://www.coolfusion.com/Support/
Need an iMS Developer license?  Sign up for a free license here:
http://www.coolfusion.com/Developers/
List archives: http://www.mail-archive.com/infusion-email%40eoscape.com/
Note: You are subscribed as [EMAIL PROTECTED]
==^=======================================================




Reply via email to