Uses of Class
jakarta.mail.Message
-
Packages that use Message Package Description jakarta.mail The Jakarta Mail API provides classes that model a mail system.jakarta.mail.event Listeners and events for the Jakarta Mail API.jakarta.mail.internet Classes specific to Internet mail systems.jakarta.mail.search Message search terms for the Jakarta Mail API. -
-
Uses of Message in jakarta.mail
Methods in jakarta.mail that return Message Modifier and Type Method Description abstract Message[]
Folder. expunge()
Expunge (permanently remove) messages marked DELETED.abstract Message
Folder. getMessage(int msgnum)
Get the Message object corresponding to the given message number.Message
MessageContext. getMessage()
Return the Message that contains the content.Message
UIDFolder. getMessageByUID(long uid)
Get the Message corresponding to the given UID.Message[]
Folder. getMessages()
Get all Message objects from this Folder.Message[]
Folder. getMessages(int[] msgnums)
Get the Message objects for message numbers specified in the array.Message[]
Folder. getMessages(int start, int end)
Get the Message objects for message numbers ranging from start through end, both start and end inclusive.Message[]
UIDFolder. getMessagesByUID(long[] uids)
Get the Messages specified by the given array of UIDs.Message[]
UIDFolder. getMessagesByUID(long start, long end)
Get the Messages specified by the given range.abstract Message
Message. reply(boolean replyToAll)
Get a new Message suitable for a reply to this message.Message[]
Folder. search(SearchTerm term)
Search this Folder for messages matching the specified search criterion.Message[]
Folder. search(SearchTerm term, Message[] msgs)
Search the given array of messages for those that match the specified search criterion.Methods in jakarta.mail with parameters of type Message Modifier and Type Method Description abstract void
Folder. appendMessages(Message[] msgs)
Append given Messages to this folder.void
Folder. copyMessages(Message[] msgs, Folder folder)
Copy the specified Messages from this Folder into another Folder.void
Folder. fetch(Message[] msgs, FetchProfile fp)
Prefetch the items specified in the FetchProfile for the given Messages.long
UIDFolder. getUID(Message message)
Get the UID for the specified message.protected void
Folder. notifyMessageAddedListeners(Message[] msgs)
Notify all MessageCountListeners about the addition of messages into this folder.protected void
Folder. notifyMessageChangedListeners(int type, Message msg)
Notify all MessageChangedListeners.protected void
Folder. notifyMessageRemovedListeners(boolean removed, Message[] msgs)
Notify all MessageCountListeners about the removal of messages from this Folder.protected void
Transport. notifyTransportListeners(int type, Address[] validSent, Address[] validUnsent, Address[] invalid, Message msg)
Notify all TransportListeners.Message[]
Folder. search(SearchTerm term, Message[] msgs)
Search the given array of messages for those that match the specified search criterion.static void
Transport. send(Message msg)
Send a message.static void
Transport. send(Message msg, Address[] addresses)
Send the message to the specified addresses, ignoring any recipients specified in the message itself.static void
Transport. send(Message msg, Address[] addresses, String user, String password)
Send the message to the specified addresses, ignoring any recipients specified in the message itself.static void
Transport. send(Message msg, String user, String password)
Send a message.abstract void
Transport. sendMessage(Message msg, Address[] addresses)
Send the Message to the specified list of addresses.void
Folder. setFlags(Message[] msgs, Flags flag, boolean value)
Set the specified flags on the messages specified in the array. -
Uses of Message in jakarta.mail.event
Fields in jakarta.mail.event declared as Message Modifier and Type Field Description protected Message
MessageChangedEvent. msg
The message that changed.protected Message
TransportEvent. msg
The Message to which this event applies.protected Message[]
MessageCountEvent. msgs
The messages.Methods in jakarta.mail.event that return Message Modifier and Type Method Description Message
MessageChangedEvent. getMessage()
Return the changed Message.Message
TransportEvent. getMessage()
Get the Message object associated with this Transport Event.Message[]
MessageCountEvent. getMessages()
Return the array of messages added or removed.Constructors in jakarta.mail.event with parameters of type Message Constructor Description MessageChangedEvent(Object source, int type, Message msg)
Constructor.MessageCountEvent(Folder folder, int type, boolean removed, Message[] msgs)
Constructor.TransportEvent(Transport transport, int type, Address[] validSent, Address[] validUnsent, Address[] invalid, Message msg)
Constructor. -
Uses of Message in jakarta.mail.internet
Subclasses of Message in jakarta.mail.internet Modifier and Type Class Description class
MimeMessage
This class represents a MIME style email message.Methods in jakarta.mail.internet that return Message Modifier and Type Method Description Message
MimeMessage. reply(boolean replyToAll)
Get a new Message suitable for a reply to this message.Message
MimeMessage. reply(boolean replyToAll, boolean setAnswered)
Get a new Message suitable for a reply to this message. -
Uses of Message in jakarta.mail.search
Methods in jakarta.mail.search with parameters of type Message Modifier and Type Method Description boolean
AndTerm. match(Message msg)
The AND operation.boolean
BodyTerm. match(Message msg)
The match method.boolean
FlagTerm. match(Message msg)
The comparison method.boolean
FromStringTerm. match(Message msg)
Check whether the address string specified in the constructor is a substring of the From address of this Message.boolean
FromTerm. match(Message msg)
The address comparator.boolean
HeaderTerm. match(Message msg)
The header match method.boolean
MessageIDTerm. match(Message msg)
The match method.boolean
MessageNumberTerm. match(Message msg)
The match method.boolean
NotTerm. match(Message msg)
boolean
OrTerm. match(Message msg)
The OR operation.boolean
ReceivedDateTerm. match(Message msg)
The match method.boolean
RecipientStringTerm. match(Message msg)
Check whether the address specified in the constructor is a substring of the recipient address of this Message.boolean
RecipientTerm. match(Message msg)
The match method.abstract boolean
SearchTerm. match(Message msg)
This method applies a specific match criterion to the given message and returns the result.boolean
SentDateTerm. match(Message msg)
The match method.boolean
SizeTerm. match(Message msg)
The match method.boolean
SubjectTerm. match(Message msg)
The match method.
-