shell script to delete alla messages from pop3 server?
Hello
I am looking for a shell script to totally remove (empty) all messages from a specific account on a pop3 mail server. Tried this one but it didn't work. Any suggestions? |
if you know user/pass you can log in and delete all.
What is the problem with that solution? |
Quote:
|
as you see the script deletes messages one by one. If you have time it will do the job. In GUI probably you can mark 20 or 50 in one and delete them. Optionally you can delete user account and create it again. I do not see any way to execute a "delete-all" command. If there was a such command the mail server provider would help you.
|
Quote:
+OK Send your password +OK Mailbox locked and ready ./clean.pop3: 11: Syntax error: Bad for loop variable Connection closed by foreign host. I use the following syntax: ./clean.pop3 1000 | telnet pop3sever 110 |
I think this is what "expect" is for but I've never used it myself so can't be any help other than to say google it, sorry.
Edit: Did you try hard coding the "1000" into the script rather than entering it on the command line? |
Did you try hard coding the "1000" into the script rather than entering it on the command line?
do you know how can i do that? i don't have scripting knowledge... |
Quote:
|
Quote:
|
Quote:
|
Quote:
Happy with solution ... mark as SOLVED If someone helps you, or you approve of what's posted, click the "Add to Reputation" button, on the left of the post. |
All times are GMT -5. The time now is 03:01 PM. |