I am retrieving emails using synapse in delphi, but the messages are being deleted from the server. How can I retrieve the message without deleti开发者_Go百科ng it? Maybe the header only?
Thanks,
JoeAre you sure emails are deleted, but you do not used pop3.Dele(i)
?
I use POP3 with SSL and if I want to delete message then I had to use pop3.Dele(i)
. In Synapse wiki: http://synapse.ararat.cz/doku.php/public:howto:pop3samplessl there is my sample code to receive POP3 messages.
Maybe you use other protocol than POP3 then show us your code.
I have no hands-on experience with Synapse, but looking at the code (sourceforge trunk) you should be fine as long as you don't explicitly call the Dele method (which maps onto the DELE POP3 command). None of the other methods seems to delete the messages, including List and Retr.
How exactly are you retrieving those messages? Could you show some code?
精彩评论