procmail
[Top] [All Lists]

Testing a variable

1995-10-26 14:27:53
Here's a rule:

{
        :0  cb
        REALFROM=| $BINDIR/formail -X'From:'
        :0  fh
        | $BINDIR/formail -i"$REALFROM"
}

What I need to do is test REALFROM after it is generated. 
Basically, if REALFROM="" I don't want to run the second formail
command.   What's the syntax to test REALFROM?

Sincerely,

Brian Rankin
Far West Laboratory for Educational Research & Development


<Prev in Thread] Current Thread [Next in Thread>