Inside backquotes:
BOGOFACTOR="`/usr/local/bin/bogofilter -v 2>/dev/null | tail -1`"
:0 fhw
* BOGOFACTOR ?? ().*Spamicity.of.\/[0-9].+
| formail -A "X-bogofactor: $MATCH
or using chained recipes:
:0 hbw
BOGOFACTOR=| (/usr/local/bin/bogofilter -v | tail -1)
:0 afhw
* BOGOFACTOR ?? ()Spamicity.of.\/[0-9].+
| formail -A "X-bogofactor: $MATCH
Or is there any difference at all?
And while we're at it, can someone explain how I parse multiline output
that's been assigned to a variable, so I can skip the `| tail -1`? I
*thought* that .* should match newlines as well, but it doesn't seem to.
Tnx. :)
--
Paul Chvostek
<paul(_at_)it(_dot_)ca>
Operations / Abuse / Whatever +1 416 598-0000
it.canada - hosting and development http://www.it.ca/
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail