procmail
[Top] [All Lists]

* VARIABLE ?? 'text' problem

1995-12-19 13:19:08
I'm trying to execute a recipe depending on the value of a procmail
variable, and I'm unable to puzzle out the proper syntax. Here's the
relevant portions:


:0
* ^TO(sub-rosa\.com)
* ^Received: from .*c2\.org .*by .*netaxs\.com
* ! ^X-Loop: grendel(_at_)netaxs(_dot_)com
{
    PROCESSED = 'FALSE'

[ snip ]

    :0 c
    * $ ^TO(lamotte|ava)@sub-rosa\.com
    {
        PROCESSED = 'TRUE'

        :0
        ! -oi lamotte(_at_)netaxs(_dot_)com
    }

    :0 c
    * $ ^TO $VALIDUSERS
    {
        PROCESSED = 'TRUE'

        :0:
        $ORGMAIL
    }

    :0:
    * PROCESSED ?? "FALSE"
    $ORGMAIL

    :0h
    /dev/null
}

The problem is that, even when PROCESSED is still set to FALSE, the
second to last recipe always fails, and the mail is sent to /dev/null.

What am I missing?

(Please Cc: me on all replies. Thanks.)

Michael

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