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


This routine returns the parameter lists for either the Content-type: or Content-disposition: header lines. (When mtaDecodeMessage() calls either a user-supplied inspection or output routine, it provides a decode context describing the current part being processed.)

The following table lists the values for the item argument, and gives a description of each.




Parameters associated with the Content-disposition: header line, if any.


Parameters associated with the Content-type: header line, if any.

The option context returned upon normal completion does not need to be disposed of with mtaOptionFinish(). It will automatically be disposed of by mtaDecodeMessage(). The values of individual parameters can be queried using mtaOptionString(), mtaOptionInt(), and mtaOptionFloat(). Program code need not worry about whether the underlying header line exists in the parts header. If it does not, then calls to obtain individual parameter values will succeed, but return no value.

Note –

If the Content-type: header line is not present, mtaOptionString() returns an empty string. This is in contrast to what happens when mtaDecodeMessageInfoString() is used. It always returns a value for the CHARSET parameter of the Content-type: header line. If the Content-type: header line is not present, it returns the MIME default value us-ascii.

It is important to note that the option contexts returned by this routine are only valid during the lifetime of the associated decode context. They are not valid after inspection or output of a new message part begins, nor are they valid after mtaDecodeMessage() returns.