Seems to be working well so far, renaming them in the loop. I had misread
CFComet's code which was using TABs' ascii character as the delimiter, which
has now got me confused.  ASCII 32, a space, is working - but do different
mail clients use different delimiters for multiple mail attachments?

Will


----- Original Message -----
From: "Billy Cravens" <[EMAIL PROTECTED]>
Newsgroups: gradwell.lists.cftalk
Sent: Friday, January 25, 2002 10:32 PM
Subject: Re: CFPOP & attachments


> You'll need to rename the files in one loop, and then link to the newly
> named files in a separate loop.
> (You could do them both, but it seems cleaner to do it the other way)
>
> I'd keep the unique file names.
>
> ----- Original Message -----
> From: "W Luke" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Friday, January 25, 2002 4:05 PM
> Subject: CFPOP & attachments
>
>
> > Say I've got a CFpop query as follows.  I was using some code for
looping
> > through multiple-attachments from cfcomet.com
> >
>
(http://www.cfcomet.com/cfcomet/other/index.cfm?ArticleID=7AD3EF1A-C5E5-4FE9
> > -8F7C88F84D5C822D).  What I need to do is prepend the sender's email
> address
> > to the attachment-filename when it's stored to the web-server.  At the
> > moment, I'm using the GENERATEUNIQUEFILENAMES="Yes" attrib in the query.
> > The CFComet code I'm using is as follows:
> >
> > <CFSET Count = ListLen(newspool.attachments, "#CHR(9)#")>
> >
> > <CFIF Len(newspool.attachments)>
> >
> > This message contains #Count# attachment<CFIF Count NEQ 1>s</CFIF>:<P>
> >
> >     <CFLOOP FROM="1" TO="#ListLen(newspool.Attachments, chr(9))#"
> INDEX="i">
> >
> > <!---       <A HREF="index.cfm?fuseaction=getMailFile
> >
> >
>
&file=#URLEncodedFormat(GetFileFromPath(ListGetAt(newspool.attachmentfiles,
> > i, chr(9))))#
> >           &name=#URLEncodedFormat(ListGetAt(newspool.attachments, i,
> > chr(9)))#">
> >           #ListGetAt(newspool.attachments, i, chr(9))#
> >        </A><BR> --->
> >     </CFLOOP>
> >
> > </CFIF>
> >
> > Should I rename the files in the above <cfloop> using #i# for the
> > filename/path in <cffile> - and if so, do I keep the
> generateuniquefilenames
> > attrib Yes?
> >
> > Hope some of that makes sense!
> >
> > Cheers
> >
> > Will
> >
> >
> >
> 
______________________________________________________________________
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to