0

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

Thom A
  • 88,727
  • 11
  • 45
  • 75
Jonathan
  • 4,724
  • 7
  • 45
  • 65

2 Answers2

2

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.

Michał Niklas
  • 53,067
  • 18
  • 70
  • 114
  • I don't see `dele()` so it should not delete any message. I will try to check it with my test mail server. Do you have access to mail server logs? Can you use tools such as Wireshark or some kind of tunel to see plain text messages exchanged by client and server? – Michał Niklas Feb 10 '11 at 21:21
  • sorry comenting so late. I don't have access neither can use wireshark right now. I quit from using delphi to accomplish this task, it was easier to create this logic in php and then use delphi just to fetch a page. But thanks anyway. The php is not deleting the messages thou – Jonathan Feb 17 '11 at 11:37
1

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?

Paul-Jan
  • 16,746
  • 1
  • 63
  • 95