There is no facility within the POP protocol to determine the unread
messages in a mailbox. You have to physically keep a list of the message-ids
or better still if your server supports them the UIDs that are stored
against the mail and compare them against the message-ID or UIDs in the
headers of the mails on the server. Any that you dont recognise are unread.


As for your error with CFPOP not deleting mail yes you should be able to use
a cftry..cfcatch arrangement however, make sure you are attempting to delete
by UID as once you disconnect from your mail server the message IDs will be
re-sorted after any mails that have been successfully marked for deletion
are deleted. If you were to attempt to delete mails using the same list
again in the try catch block and you were deleteing by messagenumber you
would inevitably end up with errors deleting incorrect mails and possibly
also attemtipng to delete mails that no longer exist at the back of the
queue essentially going out of bounds.


Paul
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to