not delete the message from email server using synapse in delphi

837 views Asked by At

I am retrieving emails using synapse in delphi, but the messages are being deleted from the server. How can I retrieve the message without deleting it? Maybe the header only?

Thanks,
Joe

2

There are 2 answers

2
Michał Niklas On

Are 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.

1
Paul-Jan On

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?