Philip recommended,
| Forget extracting anything from the header: procmail is running as
| the target user,
Yes, exactly.
| ... just rewrite the message to contain the quota info:
|
| :0
| * ^Subject:(.*\<)?show diskquota
Small potential problem there. A user sends "show diskquota" and gets
the diskquota, then sees a problem and writes about it to the sysadmin,
who gets a message with a subject like,
Fw: show diskquota
or
show diskquota (FWD)
The sysadmin then writes back to the user with a subject like
Re: Fw: show diskquota
or
Re: show diskquota (FWD)
and the message gets caught by the same recipe, and its body is replaced
with the quota information:
| # replace the body of the message with the quota info
| :0 bfiw
| | quota -v
So I should think that this condition
* ^Subject:(\<)*show diskquota$
might be safer.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail