On Thu, Sep 25, 2003 at 02:17:50AM +0800, wilson wrote:
Who have scipts or tips for procmail.rc for control mailbox quota? I need
that when mailbox full, it can be bounce to the sender and also input a mail
to notice the mailbox owner.
Quotas are the domain of the file system, not the mail system. Knowing
that, (perhaps you don't have that option) there have been a few
recipes floating around. Here's one:
<snip>
NL="
"
QUOTA=3042880
INBOXSIZE=| set -- `ls -l $DEFAULT`; echo $5 ## from David W. Tamkin
<3F1EA16E(_dot_)7040102(_at_)panix(_dot_)com>
:0
* $ -${INBOXSIZE}^0
* $ ${QUOTA}^0
{
MAXMSG = $=
:0
* $ > ${MAXMSG}
{
LOG="Bouncing (message too big!)$NL"
EXITCODE=69
HOST
}
}
:0E
{
LOG="Bouncing (inbox already full!)$NL"
EXITCODE=69
HOST
}
</snip>
Ymmv, depending on your mail setup.
Scott
--
Scott Wiersdorf
scott(_at_)perlcode(_dot_)org
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail