Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deleting mail in the POP3 files

Status
Not open for further replies.

m1bzm

ISP
Mar 6, 2001
31
0
0
GB
Hi all,

I constantly get users ringing us asking us to delete the contents of their POP3 mailbox. The only way I know how to do this at this time is to go into /var/spool/mail and open the file that coresponds to their POP3 account and delete all the lines except the top section. This works great until the user has a file attachment and they would like it deleting whilst keeping all the other mail.

Does anyone know of a small util that can show me what mail is waiting for a specific user and give me the option to delete individual messages inside that file?

Thanks in advace for any help :)

Darren
 
Hi,

I find it easiest to do this via telnet. You just telnet to the pop3 server on port 110 and then do something like this :

USER fred
PASS fredpass
LIST [produces numbered list with sizes]
DELE 200 [delete item 200]
QUIT

See -->
Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top