something like cyr_expire?

mikee mikee at mikee.ath.cx
Fri Jun 29 15:09:04 EDT 2007


Hi,

Does someone already have something like cyr_expire, or can I request
the modification to cyr_expire for the next release, that will
expunge/purge any messages that have the \Delete flag that are N
days old? What I want is something a little more aggressive than
cyr_expire. Cyr_expire (the way I understand it) will physically
remove messages that have been deleted from the index when cyrus
imapd is in 'mailbox_expunge = delayed' mode. What I want is like
that, however when a message has the \Delete flag and is N days
old, go ahead and delete the message.

I'm thinking of the thousands of system messages I get daily, and
that I delete daily, that accumulate if I do not also purge daily.
I want to add a flag to cyr_expire in /etc/cyrus.conf that will
remove any message with the \Delete flag that is N days old.

EVENTS {
  # this is required
  checkpoint    cmd="ctl_cyrusdb -c" period=30

  # this is only necessary if using duplicate delivery suppression,
  # Sieve or NNTP
  delprune      cmd="cyr_expire -E 3 -X 1 -D 2" at=0200

  # this is only necessary if caching TLS sessions
  tlsprune      cmd="tls_prune" at=0400
}

I added the '-D 2' flag above indicating that if a message has the
\Delete flag and is older than two days (172800 seconds) it is ok
to physicall delete the message, updating all the cyrus.* files,
etc.

Mike


More information about the Cyrus-devel mailing list