Delete email from pop3 server

Just starting out? Need help? Post your questions and find answers here.
oftit
User
User
Posts: 52
Joined: Sun Apr 25, 2010 5:08 am

Delete email from pop3 server

Post 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.
infratec
Always Here
Always Here
Posts: 7625
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Delete email from pop3 server

Post 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
oftit
User
User
Posts: 52
Joined: Sun Apr 25, 2010 5:08 am

Re: Delete email from pop3 server

Post by oftit »

Oh ok. Thank you.

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