The way I have done it in the past is to append message numbers to a list and then delete the list ie:
<cfset undeliverables = "1,2,3,4,5,6,7,8,9,10"> <CFPOP SERVER="mail.blah.com" USERNAME="[EMAIL PROTECTED]" PASSWORD="blah-de-blah" ACTION=DELETE NAME= "delete" MESSAGENUMBER = "#undeliverables#"> Pete Dray -----Original Message----- From: cf-talk [mailto:[EMAIL PROTECTED]] Sent: 26 January 2002 00:59 To: CF-Talk Subject: cfpop - Is It POOP? I'm running a cfpop to grab 10 message headers at a time, then runing them through a cfquery output to take message with subject="undeliverable" and run another cfpop to delete that messageNumber. I'm only grabbing 10 at a time and looping back because when I tried to run more, I got errors and wh en I created a list of messageNumbers to delete I'd get "messageNumber not found". I am the only one with access to the mailbox. It is a hosted mailserver. I alternately get three different error messages: [IN-USE] failed to lock or parse or multiple access Cannot determine message count Request canceled or ignored by serverServer busy or unable to fulfill reque st. ------------------------------------------------------ <cfset start = "1"> <cfloop condition = "#start# lt 2000"> <CFPOP SERVER="mail.blah.com" USERNAME="[EMAIL PROTECTED]" PASSWORD="blah-de-blah" ACTION=GETHEADERONLY startrow= "#start#" maxrows="10" NAME="undeliverable" timeout= 5000 > <cfset delRows = "0"> <cfoutput query="undeliverable"> <cfif #undeliverable.SUBJECT# contains "Undeliverable"> <CFPOP SERVER="mail.blah.com" USERNAME="[EMAIL PROTECTED]" PASSWORD="blah-de-blah" ACTION=DELETE NAME= "delete" maxrows="1" MESSAGENUMBER = "#undeliverable.MESSAGENUMBER#" > <cfset delRows = ("#delRows#" + "1")> deleted: #undeliverable.messageNumber# #undeliverable.subject#<br> </cfif> </cfoutput> <cfset start = "#start#" + "10" - "#delRows#"> </cfloop> ______________________________________________________________________ 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

