At 21:14 2002-02-24 +0100, Piotr Synowiec wrote:
FROM=`formail -x Return-Path`
SENDER=`formail -x Return-Path | sed 's/[<>]//g;s/^[ ]*//'`
^
Do you understand that the PIPE ('|') symbol means that the shell must be
invoked?
The FROM= can be handled without a shell, because procmail can run the
command directly. Because a character from $SHELLMETAS (see 'man
procmailrc') is seen in the second command, that requires shell invocation
to resolve the line, and without a shell, well, you get nothing.
and how I can achieve what I need without shell for a user?
Have you tried defining $SHELL in your procmailrc?
SHELL=/bin/sh
---
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(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail