13 Mar
2009
13 Mar
'09
1:56 p.m.
Chris G <cl@isbd.net> wrote:
Can anyone suggest a neat/easy way to keep only (say) the last seven days of messages in an incoming mail spool?
Install Heirloom mailx, then date -d '7 days ago' '+d (before %d-%b-%Y)' | mailx -f path/to/mbox Replace mailx with nail for older versions of debian and ubuntu, but I'm not sure in which version the () style of selection appeared. Hope that helps, -- MJ Ray (slef) Webmaster for hire, statistician and online shop builder for a small worker cooperative http://www.ttllp.co.uk/ http://mjr.towers.org.uk/ (Notice http://mjr.towers.org.uk/email.html) tel:+44-844-4437-237