Skip to content

Instantly share code, notes, and snippets.

@metalx1000
Created August 16, 2015 21:33
Show Gist options
  • Save metalx1000/34d3e65d197e26952790 to your computer and use it in GitHub Desktop.
Save metalx1000/34d3e65d197e26952790 to your computer and use it in GitHub Desktop.
BASH check POP3 mail with telnet
#!/bin/bash
fetch(){
sleep 1
echo "USER user@website"
sleep 1
echo "PASS mypassword"
sleep 1
echo "LIST"
for i in `seq 1 10`
do
sleep 1
echo "RETR $i"
sleep 1
echo "DELE $i"
done
sleep 1
echo "QUIT"
}
fetch |telnet <server> 110
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment