I'm new to programming with Delphi.
I have the latest version. I'm trying to display my emails using POP3 but I have a problem.
At one point I was wrong and did a loop with POP3.Retrieve() method instead of using POP3.RetrieveHeaders().
Delphi surely have downloaded all emails but when I try to start again, the CheckMessages() method is 0.
I tried using something like POP3.Free() or FreeAndNil(POP3) but nothing works for me, I can not check my mail.
What should I do now? When mail is downloaded to the POP3.Retrieve() method is no longer possible to see him again later?
Thanks in advance and sorry for my ignorance.
-
this is an outright off-topic, totally ignoring what Programmers is about : meta.stackexchange.com/a/129632/165773gnat– gnat2015年06月18日 04:25:33 +00:00Commented Jun 18, 2015 at 4:25
-
1You should ask at stackoverflow.com but be sure to post your code and explain what it is expected to do and goes wrong. @Bart's answer below tells you what went went wrong, but please learn which site to use for which questions. How to AskMawg– Mawg2015年06月18日 08:48:40 +00:00Commented Jun 18, 2015 at 8:48
1 Answer 1
A POP3 server only stores the new emails. Once an email has been retrieved, it is deleted from the server.
So, yes. Those emails that you downloaded accidentally are now completely gone and can't be retrieved again.
-
Thank you Bart and sorry i'm new, i was wrong section, excuse me. It will not happen again :(Lucas Amalfitani– Lucas Amalfitani2015年06月18日 15:46:11 +00:00Commented Jun 18, 2015 at 15:46
-
@LucasAmalfitani: Don't worry. I considered your question to be on-topic here or I would not have posted an answer.Bart van Ingen Schenau– Bart van Ingen Schenau2015年06月18日 16:06:39 +00:00Commented Jun 18, 2015 at 16:06