mod: download mail without delete from pop server

Hi to all. I would like to post you my solution to not delete mail from pop server. I appreciate any comment and suggestion. I'll describe you my scenario and my solution. The pop server is MS Exchange and the number of mail on the mailbox is around 5000. I've created a new table for each mailbox to insert the mail UIDL, the MESSAGE-ID and the TIMESTAMP. Normally the UIDL would be sufficient but in my case the UIDL is not unique (!). Every time the pop3.pm run it check if exist the table that correspond to the specific mailbox, if not it make the table (this portion of code would be inserted where a new mailbox is created, I write it in pop3.pm file just for a better upgrade to new version. My only problem is to prevent the db insert of uidl in case the mail was not correctly download (and viceversa). Thanks to all. Francesco.
participants (1)
-
francesco.simonini@sesaspa.it