Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-29-2003, 11:28 AM   #1
LQ Newbie
Registered: May 2003
Posts: 16

Rep: Reputation: 0
Script to Delete Old Mbox Mail


I am looking for a script that will parse a user's mbox file and delete mail over 48 hours old. The basic premise is I have a spam box where all mail flagged as spam gets directed. The box is checked every so often to verify the validity of spam. Since this box fills up very fast I want to automatically delete messages 48 hours old.


Old 10-05-2003, 01:33 AM   #2
Registered: Sep 2003
Location: Dallas, Tx, USA
Distribution: Red Hat, Gentoo, Libranet
Posts: 98

Rep: Reputation: 16
This is going to be light enough on information that I'm not sure it counts as an answer, but see if you can find a thing called "grepmail". I believe it works much like "grep" does, but rather than an individual line to search on, it uses an email as the basic unit.

Hope this helps,

Old 10-06-2003, 10:01 AM   #3
LQ Newbie
Registered: May 2003
Posts: 16

Original Poster
Rep: Reputation: 0
Script to Delete Old Mbox Mail

Looks promising, thanks!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Script to delete mail based on date gquiring Linux - General 8 05-08-2013 09:24 AM
delete mail from qmail queue hamish Linux - Software 1 06-05-2005 02:18 PM
How to delete your mail....? vous Linux - Software 3 03-19-2005 09:37 AM
Delete root mail nepcw Red Hat 5 07-18-2004 01:01 PM
Postfix should do more than delete any incoming mail, right? icarus24 Linux - Networking 12 01-05-2004 09:11 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:10 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration