@ThreadSafe public final class MessageX extends Object
Modifier and Type | Method and Description |
---|---|
static Address |
getFirstFrom(Message message)
Returns the address of the first header sender (From).
|
static Address |
getFirstRecipient(Message message,
Message.RecipientType type)
Returns the address of the first recipient of the specified type.
|
public static Address getFirstFrom(Message message) throws MessagingException
MessagingException
public static Address getFirstRecipient(Message message, Message.RecipientType type) throws MessagingException
MessagingException