IPURGE(8)
π IPURGE(8) β the Cyrus IMAP glow-up π
okay bestie, sit down, hydrate, because we're about to talk about ipurge β it's a Cyrus IMAP thing, section 8 of the manual (admin tools, the powerful girlies), and it's literally the "delete the old stuff and the big stuff" button for your mailboxes. no cap. π§Ήβ¨
β¨ NAME β¨
ipurge β Cyrus IMAP documentation, fr fr
Delete mail from IMAP mailbox or partition based on age or size β that's the whole vibe. age, size, gone. π
πΈ SYNOPSIS πΈ
ipurge [ -f ] [ -C config-file ] [ -x ] [ -M ] [ -X ] [ -i ] [ -s ] [ -o ] [ -n ] [ -v ]
[ -d days | -b bytes | -k Kbytes | -m Mbytes ]
[ mailbox-pattern... ]
like, look at her. she's got range. π
π¦ DESCRIPTION π¦
so here's the tea. ipurge deletes messages from the mailbox(es) you point at with mailbox-pattern that are older or larger than whatever you told it with the -d, -b, -k or -m options. that's it. that's the job. ποΈ
if you give it no mailbox-pattern at all, ipurge just goes ahead and works on all mailboxes. main character energy honestly. π
and if you pass the -x option, the message age and size MUST match exactly what you specified with -d, -b, -k or -m. no fuzzy matching, no "close enough". exact.
β οΈ there are no default values, and at least one of-d,-b,-kor-mMUST be specified. you cannot just run this and hope for the best, bestie. it will not vibe with that. π
by default, ipurge only deletes mail below shared folders β which means mail in mailbox(es) below INBOX.* and user.* stays untouched. like, protected. safe. cozy. π«Ά
wanna reach those too? use the -f option and it'll also delete mail in mailbox(es) below those folders. and if you don't want it to recurse into the mailboxes at all, that's the -M option. pick your fighter. π₯
also ipurge reads its configuration options out of the imapd.conf(5) file unless you say otherwise with -C. standard. iconic. π
π OPTIONS π
-C config-fileβ use the config file config-file you specified instead of the defaultimapd.conf(5). custom config, custom life. π-f,--include-user-mailboxesβ forceipurgeto examine mailboxes belowINBOX.*anduser.*. yep, even those. π-d days,--days=daysβ age of message in days. how old is too old? you decide. β³-b bytes,--bytes=bytesβ size of message in bytes. π-k Kbytes,--kbytes=Kbytesβ size of message in Kbytes (that's2^10bytes, iykyk). πΈ-m Mbytes,--mbytes=Mbytesβ size of message in Mbytes (that's2^20bytes, we love a big unit). π-x,--exact-matchβ perform an exact match on age or size, instead of "older or larger". precision, periodt. β¨-X,--delivery-timeβ use the delivery time instead of theDate:header when matching dates. the header can lie, the delivery knows. π-i,--invert-matchβ invert the match logic:-xmeans not equal, date is for newer, size is for smaller. flip it, reverse it. π-s,--skip-flaggedβ skip over messages that have the\Flaggedflag set. if you flagged it, you meant it. respect. π©-o,--only-deletedβ only purge messages that have the\Deletedflag set. so polite. π-n,--dry-runβ only print the messages that would be deleted (dry run). look before you leap, bestie. π-v,--verboseβ enable verbose output/logging. she talks. we listen. π£οΈ
π EXAMPLES π
[NB: Examples needed]
literally the original says that. the examples are... needed. someone get on that. π
π FILES π
/etc/imapd.conf
β SEE ALSO β
π AUTHOR π
The Cyrus Team, Nic Bernstein (Onlight), Jeroen van Meeuwen (Kolab Systems)
π COPYRIGHT π
1993β2026, The Cyrus Team
and that's the whole page, babe. go forth and purge responsibly (or use -n first, pls, i'm begging). π
Cyrus IMAP 3.12.4 β Sep 09, 2026 π¦ mwah, mwah, slay, bye bestie π β¨
π¦ where this page comes from
- fedora 44: cyrus-imapd 3.12.4-1.fc44 Β· BSD-Attribution-HPND-disclaimer
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms