> We need to be able to POP emails from a Yahoo! Mail account without > deleting the emails and without retrieving the same email twice. If I > set the action attribute to "Delete" in the <cfpop> tag, it deletes the > email from the Yahoo account. Is there a way to only pop unique emails > without deleting them from the mail box?
Keep a copy of the UID's you have downloaded locally, compare against the UID's on the server and only do a GETALL on the ones you haven't seen before and then store those UID's too. This process will get progressively slower as more and more e-mails are left on the server though. CFX_POP3 has a GETUIDLIST function which just retrieves the UID's of the mails on the server and makes the process lightening fast but it only works on 32-bit CF installations on Windows so it's life is limited now. Paul ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328083 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4