ipurge - delete mail from IMAP mailbox or partition based on age or size
ipurge [ -d days | -b bytes | -k Kbytes | -m Mbytes ]
[ -x ] [ mailbox-pattern... ]
Ipurge deletes messages from the mailbox(es) specified by mailbox-pattern that are older or larger than specified by the -d, -b, -k or -m options. If no mailbox-pattern is given, ipurge works on all mailboxes. If the -x option is given, the message age and size MUST match exactly those specified by -d, -b, -k or -m. The are no default val- ues, and at least one of -d, -b, -k or -m MUST be specified.
Ipurge reads its configuration options out of the imapd.conf(5) file.
-d days -b bytes -k Kbytes |
Age of message in days. Size of message in bytes. Size of message in Kbytes (2^10 bytes). |
||
-m Mbytes |
Size of message in Mbytes (2^20 bytes). |
||
-x |
Perform an exact match on age or size (instead of older or larger). |