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

Elements Argument

Using the nomenclature of RFC 822, an address has the following four-element format:

phrase <@route:local-part@domain>

Note –

The @route: element is referred to as a source route and is rarely seen.

An example address with all four elements is:

Judy Smith <>

The elements argument is a bitmask indicating which of these elements to return. The bitmask is formed by a logical OR of the following symbolic constants defined in the mtasdk.h header file:

For example, to select just the local and domain parts, use the following value for the elements argument:


When a value of zero is supplied for elements the following default bitmask is assumed: