Guenther,
guenther+procmail(_at_)gac(_dot_)edu wrote:
Hmm, fixing it in sendmail might not be trivial: C code will probably
be required. The work around on the procmail side is to extract the
sender from the argument list and wrap it in <>s.
SENDER = "<$1>"
...
:0 w
! -v -oi -f "$SENDER" "$@"
We've tested this but $1 will lead to a duplicate sender address.
($@ already contains $1) There is no way to shift the parameters.
Note the 'w' flag on the recipe. That'll cause procmail to return failure
if sendmail does. Otherwise the message will be lost.
Note that sendmail doesn't care if there's an extra pair of angle brackets
(i.e., "<<foo>>" is the same as "<foo>" as far as sendmail is concerned),
but if you want, you can suppress them on the procmail side:
SENDER = $1
# Add <>s if they aren't there already
:0
* ! SENDER ?? ^^<
{ SENDER = "<$SENDER>" }
Regards,
Marcel Janssen
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail