Ah I see. In deliver_mail before the ns_sendmail line I add
set eh [util_list_to_ns_set $extraheaders]
and then replace $extraheaders
with $eh
in the ns_sendmail parameters.
Thanks Jeff. Later today I'll add that as a bug and patch if its not already there.
Steve