Sun Java System Messaging Server 6 2005Q4 MTA Developer's Reference

MTA_HDR_PROC

Specify the address of a procedure that will return, one line at a time, header lines for the message header. The item_address field specifies the address of the procedure to invoke. The item_length field is ignored.

The calling format that must be used by the procedure is given in Message Headers and Content.