1

I have this WCF application which is hosted as a windows service. This service has to download mails which have CSV attached to them from a pop3 account. After getting that CSV I have to delete that mail from the pop3 account so that it is not downloaded again. How can I do it?

Please help.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Sidharth
  • 1,251
  • 1
  • 25
  • 40
  • Are you using a pop3 library - which one? - or trying to implement the pop3 protocol yourself? I'm guessing C#? There's library suggestions http://stackoverflow.com/questions/44383/reading-email-using-pop3-in-c – Rup Oct 04 '10 at 09:19
  • I am trying to implement pop3 by myself in c#. – Sidharth Oct 04 '10 at 09:59

1 Answers1

2

Send DELE 1 command

If the message you want to delete has the ID 1

Look at this class for more answers.

  • I am sending DELE 1 and i am getting the response +OK message 1 marked for deletion, but deletion is not taking place. – Sidharth Oct 12 '10 at 05:35
  • This works, thanks. Added you a point. This should have been marked as an answer. – Maciej Nov 25 '10 at 23:07