Scroll to navigation

IPURGE(8) Cyrus IMAP IPURGE(8)

NAME

ipurge - Cyrus IMAP documentation

Delete mail from IMAP mailbox or partition based on age or size

SYNOPSIS

ipurge [ -f ] [ -C config-file ] [ -x ] [ -X ] [ -i ] [ -s ] [ -o ] [ -n ] [ -v ]

[ -d days | -b bytes | -k Kbytes | -m Mbytes ]
[ mailbox-pattern... ]

DESCRIPTION

ipurge deletes messages from the mailbox(es) specified by Imailbox-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 values, and at least one of -d, -b, -k or -m MUST be specified.

Ipurge by default only deletes mail below shared folders, which means that mails in mailbox(es) below INBOX.* and user.* stay untouched. Use the option -f to also delete mail in mailbox(es) below these folders.

ipurge reads its configuration options out of the imapd.conf(5) file unless specified otherwise by -C.

OPTIONS

Use the specified configuration file config-file rather than the default imapd.conf(5).

Force ipurge to examine mailboxes below INBOX.* and user.*.

Age of message in days.

Size of message in bytes.

Size of message in Kbytes (2^10 bytes).

Size of message in Mbytes (2^20 bytes).

Perform an exact match on age or size (instead of older or larger).

Use delivery time instead of Date: header for date matches.

Invert match logic: -x means not equal, date is for newer, size is for smaller.

Skip over messages that have the \Flagged flag set.

Only purge messages that have the \Deleted flag set.

Only print messages that would be deleted (dry run).

Enable verbose output/logging.

EXAMPLES

[NB: Examples needed]

FILES

/etc/imapd.conf

SEE ALSO

imapd.conf(5)

AUTHOR

The Cyrus Team, Nic Bernstein (Onlight), Jeroen van Meeuwen (Kolab Systems)

COPYRIGHT

1993-2017, The Cyrus Team

May 18, 2018 3.0.7