procmail
[Top] [All Lists]

Re: How to check for environment variable?

1999-03-29 01:17:16
* 1999-03-28 Rupa Schomaker (list) <rupa-list(_at_)rupa(_dot_)com> list.procmail
* Message-Id: <m3emm91gtw(_dot_)fsf(_at_)gw(_dot_)rupa(_dot_)com>
| I deliver to a cyrus mailbox.  If I have a "extension"
| (user+extension(_at_)domain) I want to use a different call to deliver than 
| if there is no extension.  The extension (and user) is passed to
| procmail in an environment variable.  If there is no extension, then
| extension is either undefined or set to nothing (defined, but not
| value).

Just copy the pseudovamriable and make tests on the copy:

    ARG      = $1

    :0
    * ARG ?? [a-z]
    {

        #  contains-letters
    }

jari

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