Page 1 of 1

Delete email from pop3 server

Posted: Sat Dec 04, 2010 2:14 pm
by oftit
Hello all

I'm using awpbtools for email and stuff. But I studied the code and was looking for how to delete email from the pop3 server, but without any luck. I also searched in the forum, and no luck.

Thank you.

Re: Delete email from pop3 server

Posted: Sat Dec 04, 2010 5:29 pm
by infratec
Hi,

that's not a big deal.
You can open a session via port 110,
log in with your username and password

USER $username
(Wait for +OK)
PASS $password
(Wait for +OK)

Than you can use LIST for a list of all your e-mails
and than you can use the DELE command and the number of the message as parameter to delete it.

If you put every line of LIST in a linked list, you can go through all of them and delete each of them.


To test how it works use telnet:

telnet your.mail.provider 110
USER YourEMailaccountName
PASS YourSecret
LIST

QUIT

The best reference is the original one: :mrgreen:
http://www.rfc-editor.org/rfc/rfc1939.txt


Best regards,

Bernd

Re: Delete email from pop3 server

Posted: Sun Dec 05, 2010 12:58 am
by oftit
Oh ok. Thank you.

I used the *pop\_DELE(index) method. Thank you. It works.