> Yep, that's another nifty feature of <cfpop>, the <cfcatch type="any"> > doesn't catch those errors. Here's what I use:
In my experience CFPOP *does* catch these errors. I've got my <cfcatch> to look for 'bad login' and 'timeout' in the catch message, and that has worked fine for me. Have you found that this isn't always the case? Is checking for these specific erros more reliable? > <!--- i set an error if an invalid username and password combination is > given ---> > <cfcatch type="COM.Allaire.ColdFusion.POPAuthFailure"> > <cfset POPError="AuthFailure"> > </cfcatch> > > <!--- i set an error if the mail server cannot be reached ---> > <cfcatch type="COM.Allaire.ColdFusion.POPConnectionFailure"> > <cfset POPError="ConnectionFailure"> > </cfcatch> > <!--- i catch an error if there are no messages ---> > <cfcatch type="Any"> > <cfset POPError="NoMessages"> > </cfcatch> And why would there be an error if there were no messages? Don't you just return a query with no rows? > You can use action="GetHeadersOnly", but then > you won't retrieve the message (sarcasm alert: which isn't that important > anyway) Well, this is useful for web-based email applications where you want to get just the headers for the list of messages, without wasting the bandwidth on the message body until the user asks to look at it. > I'd > like to hear anyone's opinion's on putting <cflock>s on <cffile>s if they're > out there-> Here's one item in the archive: http://www.mail-archive.com/[email protected]/msg28007.html ..But that's talking about multiple users accessing one file. With CFPOP, particularly with 'generateuniquefilenames="Yes"', you shouldn't have that problem, right? So... No lock for CFPOP? I sure wish I knew what was causing this 'unexpected exception' error. -- Owen ---- Athens County Library Services http://www.athenscounty.lib.oh.us ______________________________________________________________________ Get Your Own 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=coldfusionb 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

