<<< Date Index >>>     <<< Thread Index >>>

purging mailboxes



I have a situation where some scripts run by root's crontab send
messages to certain users.  The scripts also save a copy of each sent
message in the mailbox /Mail/SAVE.

>From time to time, someone logged in as root needs to open that mailbox
to delete some saved copies lest the mailbox's size explode.

It would be nice to automate the maintenance, so: could a script (also
run by cron) manage a mailbox by pruning messages older than some
<number> of days, or by deleting all but the last <number> of messages?

-- 
JP