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.
Delete email from pop3 server
Re: Delete email from pop3 server
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:
http://www.rfc-editor.org/rfc/rfc1939.txt
Best regards,
Bernd
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:

http://www.rfc-editor.org/rfc/rfc1939.txt
Best regards,
Bernd
Re: Delete email from pop3 server
Oh ok. Thank you.
I used the *pop\_DELE(index) method. Thank you. It works.
I used the *pop\_DELE(index) method. Thank you. It works.