Bugtraq mailing list archives

Re: procmail


From: casper () HOLLAND SUN COM (Casper Dik)
Date: Mon, 21 Jul 1997 16:50:56 +0200


On Fri, 18 Jul 1997, jamie wrote:

Greetings Citizen!

Here's a heads up to anyone running procmail v3.11pre4.

                FILES=| sed -n -e 's/^Subject:.*request \(.*\)/\1/p'

                | (cat; cat $FILES) | $SENDMAIL -oi -t

Not only that.. but is it as easy to run shell commands as it looks?  Or
will procmail escape metacharacters inside variables automagically?  (man
procmailrc says nothing about automatic escaping, but does say pipes are
passed to the shell for evaluation if they contain metacharacters... which
this one does.)


Shells will not honor meta characters inside variables.

The shell will first parse (the phase in which meta chacretsr and keywords
are detected) and only then will it do variabel substitution.

Then it'll split stuff in words and only then wildcard expansion is done.

(So wildcards in shell variables are expanded; meta charcters aren't)

Casper



Current thread: