> Think of it as a lock condition. You get all the emails from your server.
You process them, stick 'em in a database or whatnot, then empty your
mailbox. > Everything in there is gone, including any messages that come in
during your processing time that you didn't see.

> I'm no POP3 expert, so correct me if this isn't possible. 


So in this scenario, where do ALL the mails get deleted??

There are 3 mails in your mail box to start with..

<cflock name="MyPOPSession" .... >


        <cfpop action="getmail" ... > <-- Retrieves 3 mails 

        ...
        Some processing occurs...
        ...
        Meanwhile, 3 more mails arrive in your mailbox and your POP server
        numbers them 4,5 and 6 respectively because at the moment, 1,2 and 3

        are still in your mail box...
        ...

        <cfpop action="delete" messagenumber="1,2,3" ... > <-- Deletes the
first three mails leaving the other three behind...             

</cflock>

I guess that the key here is that you don't empty your mailbox, you only
delete the mails that you process.... Seems straightforward enough to me...

Paul


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198503
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to