Delete mail from pop3 account with 67K messages via command line?
Posted on 2008-06-11
My inbox got bombed by a rouge script. There is 67,000 messages. Outlook and the like won't delete them from the server until it has downloaded all messages. Outlook crashes before it can download that many.
I have a shell script (linux) which deletes messages. When its run, they say "Ok deleted". I'm guess they are just marked for deletion because they are still there.
How can I get rid of these altogehter (I even deleted the whole account on my host to no avail).
Here is the script:
# usage: ./clean.pop3 2500 | telnet mail.myserver.com 110
[ $# -eq 0 ] && exit 1 || :
echo USER $username
echo PASS $password
for (( j = 1 ; j <= $MAX_MESS; j++ ))
echo DELE $j