I am having difficulty comprehending the use of the $MATCH variable in
procmail recipes. I have read the two brief mentions of it in the man
pages, and looked at the examples, but it is not clear to me how it works.
If I have a recipe such as this:
:0:
* ^From.*(moe|larry|curly|shemp)@stooge\.net
mail/stooges
I would like to know what matched when this recipe succeeds, and log it.
The above is a simple recipe - some of mine are very long and it's not
always obvious what matched.
How would you rewrite the above recipe condition using the "\/" mechanism,
to that I could have the block
{
LOG="$MATCH
"
:0
mail/stooges
}
Thank you,
--
_________________
revjack(_at_)radix(_dot_)net