procmail
[Top] [All Lists]

Re: Long char vars in procmail

1998-02-17 00:51:39
On Tue, 17 Feb 1998 02:00:45 -0500, Walter Dnes
<waltdnes(_at_)interlog(_dot_)com> wrote:
MYLISTS="etc|etc|etc)"
$ MYLISTS="^From:.risks@|"$MYLISTS
$ MYLISTS="(X-Loop:.procmail|"$MYLISTS
    What's the right way of doing this?

    MYLISTS="(^X-Loop:[         ]*procmail|\
^From:[         ]*risks@|\
etc|etc|etc"

Note that leading whitespace is not ignored with this syntax; it will
be included verbatim as it's inside a quoted string.

You only need the leading $ on actual recipes, something like

    MYLISTS="foo|bar|$MYLISTS"

works quite as expected. 

/* era */

-- 
 Paparazzi of the Net: No matter what you do to protect your privacy,
  they'll hunt you down and spam you. <http://www.iki.fi/~era/spam/>

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