Advertisement
metalx1000

BASH check POP3 mail with telnet

Jul 30th, 2015
803
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.29 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. fetch(){
  4.   sleep 1
  5.   echo "USER user@website"
  6.   sleep 1
  7.   echo "PASS mypassword"
  8.  
  9.   sleep 1
  10.   echo "LIST"
  11.  
  12.   for i in `seq 1 10`
  13.   do
  14.     sleep 1
  15.     echo "RETR $i"
  16.     sleep 1
  17.     echo "DELE $i"
  18.   done
  19.  
  20.   sleep 1
  21.   echo "QUIT"
  22. }
  23.  
  24. fetch |telnet <server> 110
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement