procmail
[Top] [All Lists]

Long char vars in procmail

1998-02-17 00:13:12
How does one go about concatenating or extending
character variables.  This is for a generic filter I'm
working on.  Let's say a particular user has several
mailing lists he wants to receive, and the filter blocks
aother email not addressed to him.  So the declaration
in .procmailrc looks like...

MYLISTS="(X-Loop:.procmail|^From:.risks@|etc|etc|etc)"

    Long before you get to the LINEBUF limit, it gets
very unweildy to edit.  Is there a way to continue on
the next line?  If not, I was thinking...

MYLISTS="etc|etc|etc)"
$ MYLISTS="^From:.risks@|"$MYLISTS
$ MYLISTS="(X-Loop:.procmail|"$MYLISTS

    What's the right way of doing this?

-- 
Walter Dnes (Toronto)
<waltdnes(_at_)interlog(_dot_)com>

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