Dave Robbins wrote:
Does anyone have an auto-responder in which a user could email themselves
with a subject line of, say, 'show diskquota' and receive a message back
displaying their diskquota (the equivalent of 'quota -v' on solaris).
This will do what you _seem_ to be asking , (I think. I haven't tested
it.) It's certainly a security risk, though, since I it
will respond with the "quota -v" output to anyone who requests
it, but at least it will give you a starting point; some better ideas
might be to include the requirement of a password, or limiting the
"From:" addresses for which it will respond, etc.
SHELL=/bin/sh # whatever shell you want it to use
SENDMAIL=/usr/sbin/sendmail # where to look for the MTA
:0 iW
* ^Subject: show diskquota
* !^X-Loop: user(_at_)host
| ( formail -r -A"X-Loop: user(_at_)host"; echo "quota -v" | $SHELL ) \
| $SENDMAIL -oi -t
If there are glaring problems, I hope the gurus will jump in
and offer their wisdom. :)
Good luck!
-- Mr. Wade
--
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