1IPURGE(8) System Manager's Manual IPURGE(8)
2
3
4
5 *
6
8 ipurge - delete mail from IMAP mailbox or partition based on age or
9 size
10
12 ipurge [ -f ] [ -C config-file ] [ -x ] [ -X ] [ -i ] [ -s ]
13 [ -d days | -b bytes | -k Kbytes | -m Mbytes ]
14 [ mailbox-pattern... ]
15
17 Ipurge deletes messages from the mailbox(es) specified by mailbox-pat‐
18 tern that are older or larger than specified by the -d, -b, -k or -m
19 options. If no mailbox-pattern is given, ipurge works on all mail‐
20 boxes. If the -x option is given, the message age and size MUST match
21 exactly those specified by -d, -b, -k or -m. The are no default val‐
22 ues, and at least one of -d, -b, -k or -m MUST be specified.
23
24 Ipurge by default only deletes mail below shared folders, which means
25 that mails in mailbox(es) below INBOX.* and user.* stay untouched. Use
26 the option -f to also delete mail in mailbox(es) below these folders.
27
28 Ipurge reads its configuration options out of the imapd.conf(5) file
29 unless specified otherwise by -C.
30
32 -f Force deletion of mail in all mailboxes.
33
34 -C config-file
35 Read configuration options from config-file.
36
37 -d days
38 Age of message in days.
39
40 -b bytes
41 Size of message in bytes.
42
43 -k Kbytes
44 Size of message in Kbytes (2^10 bytes).
45
46 -m Mbytes
47 Size of message in Mbytes (2^20 bytes).
48
49 -x Perform an exact match on age or size (instead of older or
50 larger).
51
52 -X Use delivery time instead of Date: header for date matches
53
54 -i Invert match logic: -x means not equal, date is for newer, size
55 is for smaller
56
57 -s Skip over messages that have the \Flagged flag set.
58
60 /etc/imapd.conf
61
62
63
64CMU Project Cyrus IPURGE(8)