procmail
[Top] [All Lists]

Re: diskquota auto-responder?

2001-05-14 21:22:49
Mr. Wade wrote:
-----

SHELL=/bin/sh                # whatever shell you want it to use
SENDMAIL=/usr/lib/sendmail   # where to look for the MTA

:0 c
* ^from:\/.*
FROM=| echo $MATCH | sed -e "s/.*<\(.*\)>.*/\1/"

:0 iW
* $ !^x-loop: $FROM
* $ ^from:.*\<$FROM
* $ ^to:.*\<$FROM
* ^subject:.*\<show diskquota
| ( formail -r -X "" -A "X-Loop: $FROM"; \
    echo "Below, 'limit' indicates your diskquota in kilobytes"; \
    echo ""; echo "uptime" | $SHELL ) \
  | $SENDMAIL -oi -f $FROM -- $FROM

-----

Oops.  Heh.  I don't have a "quota -v" command, so I was using
"uptime" for testing while I was working on it.  Then, I
pasted my work into the email without changing it back.

Substitute the correct command above accordingly.  :o)

-- 
Linux: The Choice of the GNU Generation


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail