Table of Contents
mboxscrub - remove old mails from mbox file
mboxscrub [ -D days-to-keep
] mboxfile
Remove old emails from an mbox file.
- -D days-to-keep
- Keep the last days-to-keep days in mbox file. Default: 40
The
return value is 0 / EX_OK when no error happened. When the mbox file can’t
be read EX_NOINPUT is returned. When the mbox file can’t be opened for writing
then EX_CANTCREAT is returned. When the mbox file can’t be written EX_IOERR
is returned.
$ cd /var/spool/mail
$ postlock user1 mboxscrub -D 31 user1
The mbox size must be less than 2 GiB when compiled on 32 bit host
and otherwise less than 4 GiB.
Frank Bergmann, http://www.tuxad.com
Table of Contents