Bob Snyder asked,
| How do I set up a condition to match a variable? I'm trying to use the
| sendmail 8 support for procmail, where username+whatever gets handed to
| procmail as an arguement in $1. I'm not sure of the syntax of a rule to use
| this information to sort email.
|
| Can someone provide an example?
Procmail's VAR ?? condition syntax won't work on special variables like $1,
so first you have to copy its value into an ordinary variable, like this:
ARG1=$1
Then you can use
* ARG1 ?? whatever
to do any tests you like on the value that was passed in $1.