[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: trimming ~/.maillog



On Fri, Feb 21, 2003 at 10:25:51PM -0500, Andy Saxena wrote:
> I use ~/.maillog to log the actions of procmail verbosely. However the
> file keeps growing by the day. Is there any way to trim the file size
> and keep it under 100 Mb?

Run mailstat every so often (say, out of cron). My crontab contains:

1 4 * * *       (echo; date; mailstat ~/mail/procmail.log) >> ~/mail/procmail.stats

Cheers,

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: