Sunil Shetye wrote:
Then, the only method seems to be to modify the sanitize() function in
sink.c. One solution would be to put quotes around the addresses.
Attached is a patch which does that. The mda line:
/usr/sbin/sendmail -i -oem -f %F %T
will expand to:
/usr/sbin/sendmail -i -oem -f 'from-address' 'to-address'
Unfortunately, the patch does not work if the mda line already has
quotes. So, mda like these will not work after this patch:
/usr/sbin/sendmail -i -oem -f '%F' '%T'
/usr/sbin/sendmail -i -oem -f "%F" "%T"
I think it is not possible to check for all combinations of quotes. It
will be better to just put a warning in the documentation that quotes
are incorrect. Is this acceptable?
How about splitting (shell-like parsing) the mda line into its
component arguments, then execing the mda directly instead of through
the shell?
--
==============================| "A microscope locked in on one point
Rob Funk <rfunk(_at_)funknet(_dot_)net> |Never sees what kind of room that
it's in"
http://www.funknet.net/rfunk | -- Chris Mars, "Stuck in Rewind"