procmail
[Top] [All Lists]

Re: assign variable with pipe (Was: variable in save file)

2008-02-12 01:10:06
At 07:30 2008-02-12 +0100, Thomas Richter wrote:
Hi,
I can't assign a variabe with a pipe:
MAILLANG2=`formail -xX-Spam-Possible-Language: | tr 'a' 'b'`
this doesn't work although this works
MAILLANG2=`formail -xX-Spam-Possible-Language: `

You'd be the same chap posting about problems with invoking shell pipelines 
under the heading of "variable in save file"?  Does this problem not seem 
related to you?

If you're invoking ONLY one program (i.e. no pipeline or anything else 
matching $SHELLMETAS), then the SHELL won't be involved, and procmail will 
invoke the program by itself.  If there's a pipeline, procmail needs to 
invoke the shell.

Solve your shell invocation problem, which is the core of your previously 
posted problem.

You might try hitting the URL in my sig and retrieving, reviewing, and 
running the ProcDiags script I have there - it may provide some 
illumination for you.

---
  Sean B. Straw / Professional Software Engineering

  Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
  Please DO NOT carbon me on list replies.  I'll get my copy from the list.

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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