Il giorno Fri, 29 Sep 2006 21:17:37 +0200
Gian Piero Carrubba <gp-...@rm-rf.it> ha scritto:
The patch applies to maildrop 2.0.2 released as standalone tarball
( not bundled with courier-mta ). It modifies the -w option, so that
it accepts a list of comma separated values ( by default max 3, but
customizable at compile time setting QUOTA_WARN_LEVELS ).
When the maildir usage exceeds one of the supplied percentage, the
@sysconfdir/<msgfile>_<perc> ( or the default @sysconfdir/<msgfile> )
get copied into the maildir. So, i.e., using '-w 30,60,90' let
the user be warned at 30%, 60% and 90% of maildir usage ( using
the /etc/quotawarnmsg_(30|60|90) files or /etc/quotawarnmsg if one of
the former isn't available ). The warning is delivered no more than
once in a day, unless a higher level got exceeded. Patch to the
documentation hasn't been made, yet.
Forgotten to say that this patch uses the $maildir/quotawarn file to
store the last exceeded quotawarn level, and i'm not sure it's a
legitimate behaviour ( although it should be back/forward
compatible, as long as all interested software act as upstream maildrop
does, checking for quotawarn's mtime ).
I need hints about this matter.
Ciao,
Gian Piero.