ryu's blog just a few lines of code

19Jan/100

E-Mails per Telnet vom Server löschen

Via POP3, mit Script

#!/bin/sh
username="user@myisp.com";
password="mypop3server-password";
MAX_MESS=$1
[ $# -eq 0 ] && exit 1 || :
sleep 2
echo USER $username
sleep 1
echo PASS $password
sleep 2
for (( j = 1 ; j <= $MAX_MESS; j++ ))
do
echo DELE $j
sleep 1
done
echo QUIT

Anwendung

./clean.pop3 2500 | telnet pop3.myisp.com 110

Tagged as: , , , No Comments