procmail
[Top] [All Lists]

Re: Help matching the value of a variable

2001-10-04 04:49:54
On 10/04/01 02:00 PM, Odhiambo Washington sat at the `puter and typed:
* Louis LeBlanc 
<leblanc+procmail(_at_)acadia(_dot_)ne(_dot_)mediaone(_dot_)net> [20011004 
06:43]: writing on the subject 'Help matching the value of a variable'
| Hey all.  I'm trying to match based on a variable passed into
| procmail.  The variable indicates the folder the message is to be
| delivered to, and I want to toss the message if it is set to a certain
| value and the subject matches.
| 
| I really suck at recipes, so don't laugh:
| 
| :0
| * $EXTENSION webmaster ??

Is the variable $EXTENSION already defined? Where should it be obtained from, 
body, headers?

Uh, sorry.  I guess I didn't really clarify *how* EXTENSION gets
passed in, but it is a parameter in the procmail call:

I am doing this at the top of /etc/procmailrc:
LOGNAME = $1
EXTENSION = $2

EXTENSION defines the folder name the message is to be delivered to
(courtesy of sendmail and plussed users - see my To: header)

So I assume I don't need the B?  I'll give that idea a try.

Thanks Wash.

Lou
-- 
Louis LeBlanc       leblanc(_at_)acadia(_dot_)ne(_dot_)mediaone(_dot_)net
Fully Funded Hobbyist, KeySlapper Extrordinaire :)
http://acadia.ne.mediaone.net                 Ô¿Ô¬

For every complex problem, there is a solution that is simple, neat, and wrong.
    -- H. L. Mencken

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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