Computing.Net > Forums > Unix > telnet command to pop3 server

telnet command to pop3 server

Reply to Message Icon

Original Message
Name: mambabob
Date: November 23, 2002 at 21:54:39 Pacific
Subject: telnet command to pop3 server
OS: redhat8
CPU/Ram: 256
Comment:

Hello,

After I telnet to pop3 server, let say I have 1000 messages in there which command do I delete all of them at once?

I don't want to type dele #'s each message.
Yes you may suggest me to use the mail client software, but I just want to do from the telnet mode.

Thanks
Bob


Report Offensive Message For Removal

Response Number 1
Name: seanmiller
Date: November 24, 2002 at 02:22:01 Pacific
Subject: telnet command to pop3 server
Reply: (edit)

Erm, telnet to the pop server? Not something I'm familiar with...

Do you mean telnet to a server and then use the unix "mail" utility to process the messages?

If so, delete will take a range of numbers. So if you have 500 messages you could do "delete 1-500". I think you may also be able to simply do "delete *", but I'm not 100% sure of that. You'd need to try it.

Sean


Report Offensive Follow Up For Removal

Response Number 2
Name: David Perry
Date: November 25, 2002 at 05:34:46 Pacific
Subject: telnet command to pop3 server
Reply: (edit)

If you want to connect directly to the pop3 daemon, the commands supported will vary wildly from one server to the next. Check the man page for the pop3 server you have installed.

# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK QPOP (version 3.0.1) at domain.com starting.
user username
+OK Password required for username.
pass passwd
+OK username has 0 visible messages (0 hidden) in 0 octets.
list
+OK 0 visible messages (0 octets)
.
quit
+OK Pop server at domain.com signing off.
Connection closed by foreign host.

From the qpopper man page:

%telnet pop.qualcomm.com 110
Trying...
Connected to pop.qualcomm.com.
Escape character is '^]'.
+OK QPOP (version 3.0) at pop.qualcomm.com starting.
quit
+OK Pop server at pop.qualcomm.com signing off.
Connection closed by foreign host.

If you have pine installed as a mail reader, you can easily select a numeric range of messages to be deleted after you authenticate normally.

If you want to delete all of the messages and you are logged in you could try
echo "" > /var/mail/username
substituting system appropriate paths and usernames.


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: telnet command to pop3 server

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software