Toen wij David W. Tamkin kietelden, kwam er dit uit:
Ruud H.G. van Tol:
I was missing an incarnation. Because most mail won't match,
do the optimal test for that first.
:0D
* B ?? ()\/(aaa|bbb|ccc|ddd|eee)
{
:0 D fw h
* B ?? 9876543210^0 ()\/aaa
* B ?? 9876543210^0 ()\/bbb
* B ?? 9876543210^0 ()\/ccc
* B ?? 9876543210^0 ()\/ddd
| formail -I "X-Procmail: alphabet soup: $MATCH"
:0 A
alphabet/soup
}
There's no reason to need in the outer condition nor even
to split the tests in two.
I still like to lay-out this nested, because I consider it clearer.
There is no real loss, since the pattern doesn't occur often.
Stuff for the procmail-dev list: a nice variant of ?? would be ??? (or
?D?),
to force case sensitive testing.
--
Grtz, Ruud
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail