procmail
[Top] [All Lists]

Re: -a option and FEATURE(local_procmail)

1996-09-23 13:45:18
Philip Guenther wrote,
Even though $h is empty, sendmail should be invoking procmail is an
(empty) argument after the -a argument.  I.e.:

argv[0] = "procmail"
argv[1] = "-Y"
argv[2] = "-a"
argv[3] = ""
argv[4] = "-d"
argv[5] = "username"
argv[6] = NULL

Aha!  This is the clue I needed.  Sendmail is actually invoking a
wrapper script that calls the real procmail, and I was passing along
$@ instead of "$@", so the shell was rescanning the arguments,
eliminating argv[3].

Thanks,

Tony

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