At 00:52 2002-01-07 +0100, Nils Vogels did say:
Why do you use a pipe here ?
FILTER_OPTIONS=|`grep "^$LOGNAME " /etc/procmailrcs/spamassassin.users`
^^^^^^^^
Wouldnt just executing the grep give the same results ?
Yes, my error - pipe would be used to pass the message - normally one might
run the message through formail to extract headers. I whipped up that for
someone with a specific request, and wouldn't you know it, they never so
much as acknowledged the post...
I was thinking it wouldnt, but executing a seperate program is fine as
well .. is there a way to catch STDERR as well, coming from the binary
I've never tried, but you might use shell arguments for redirection of stderr.
If you have an error condition, you could return a plain error string on
STDOUT, then check for that in the string into which you sent the results:
:0
* $FILTER_OPTIONS ?? ^ERROR
or somesuch.
btw, and still being able to tell the difference between STDOUT and
STDERR ?
no.
---
Sean B. Straw / Professional Software Engineering
Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the list.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail