Uses of Class
javax.mail.Message
Packages that use Message
Package
Description
Support for creating and parsing Delivery Status Notifications.
An IMAP protocol provider for the JavaMail API
that provides access to an IMAP message store.
A POP3 protocol provider for the JavaMail API
that provides access to a POP3 message store.
An SMTP protocol provider for the JavaMail API
that provides access to an SMTP server.
The JavaMailTM API
provides classes that model a mail system.
Listeners and events for the JavaMail API.
Classes specific to Internet mail systems.
Message search terms for the JavaMail API.
-
Uses of Message in com.sun.mail.dsn
Subclasses of Message in com.sun.mail.dsnModifier and TypeClassDescriptionclass
A special MimeMessage object that contains only message headers, no content. -
Uses of Message in com.sun.mail.imap
Subclasses of Message in com.sun.mail.imapMethods in com.sun.mail.imap that return MessageModifier and TypeMethodDescriptionMessage[]
IMAPFolder.addMessages
(Message[] msgs) Append the given messages into this folder.Message[]
IMAPFolder.expunge()
Expunge all messages marked as DELETED.Message[]
Expunge the indicated messages, which must have been marked as DELETED.IMAPFolder.getMessage
(int msgnum) Get the specified message.IMAPFolder.getMessageByUID
(long uid) Get the Message corresponding to the given UID.Message[]
IMAPFolder.getMessagesByUID
(long[] uids) Get the Messages specified by the given array.Message[]
IMAPFolder.getMessagesByUID
(long start, long end) Get the Messages specified by the given range.Message[]
IMAPFolder.getMessagesByUIDChangedSince
(long start, long end, long modseq) Get the messages that have been changed since the given MODSEQ value.Message[]
IMAPFolder.getSortedMessages
(SortTerm[] term) Sort the messages in the folder according to the sort criteria.Message[]
IMAPFolder.getSortedMessages
(SortTerm[] term, SearchTerm sterm) Sort the messages in the folder according to the sort criteria.Message[]
IMAPFolder.search
(SearchTerm term) Search whole folder for messages matching the given term.Message[]
IMAPFolder.search
(SearchTerm term, Message[] msgs) Search the folder for messages matching the given term.Methods in com.sun.mail.imap with parameters of type MessageModifier and TypeMethodDescriptionMessage[]
IMAPFolder.addMessages
(Message[] msgs) Append the given messages into this folder.void
IMAPFolder.appendMessages
(Message[] msgs) Append the given messages into this folder.com.sun.mail.imap.AppendUID[]
IMAPFolder.appendUIDMessages
(Message[] msgs) Append the given messages into this folder.void
IMAPFolder.copyMessages
(Message[] msgs, Folder folder) Copy the specified messages from this folder, to the specified destination.com.sun.mail.imap.AppendUID[]
IMAPFolder.copyUIDMessages
(Message[] msgs, Folder folder) Copy the specified messages from this folder, to the specified destination.Message[]
Expunge the indicated messages, which must have been marked as DELETED.void
IMAPFolder.fetch
(Message[] msgs, FetchProfile fp) Prefetch attributes, based on the given FetchProfile.long
Get the UID for the specified message.Message[]
IMAPFolder.search
(SearchTerm term, Message[] msgs) Search the folder for messages matching the given term.void
Set the specified flags for the given array of messages. -
Uses of Message in com.sun.mail.pop3
Subclasses of Message in com.sun.mail.pop3Methods in com.sun.mail.pop3 that return MessageModifier and TypeMethodDescriptionMessage[]
POP3Folder.expunge()
Always throwsMethodNotSupportedException
because the POP3 protocol doesn't support expunging messages without closing the folder; call theclose
method with theexpunge
argument set totrue
instead.POP3Folder.getMessage
(int msgno) Methods in com.sun.mail.pop3 with parameters of type MessageModifier and TypeMethodDescriptionvoid
POP3Folder.appendMessages
(Message[] msgs) Always throwsMethodNotSupportedException
because the POP3 protocol doesn't support appending messages.void
POP3Folder.fetch
(Message[] msgs, FetchProfile fp) Prefetch information about POP3 messages.Return the unique ID string for this message, or null if not available.protected void
POP3Folder.notifyMessageChangedListeners
(int type, Message m) -
Uses of Message in com.sun.mail.smtp
Subclasses of Message in com.sun.mail.smtpModifier and TypeClassDescriptionclass
This class is a specialization of the MimeMessage class that allows you to specify various SMTP options and parameters that will be used when this message is sent over SMTP.Methods in com.sun.mail.smtp with parameters of type MessageModifier and TypeMethodDescriptionprotected void
SMTPTransport.notifyTransportListeners
(int type, Address[] validSent, Address[] validUnsent, Address[] invalid, Message msg) Notify all TransportListeners.void
SMTPTransport.sendMessage
(Message message, Address[] addresses) Send the Message to the specified list of addresses. -
Uses of Message in javax.mail
Methods in javax.mail that return MessageModifier and TypeMethodDescriptionabstract 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.MessageContext.getMessage()
Return the Message that contains the content.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 javax.mail with parameters of type MessageModifier and TypeMethodDescriptionabstract 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
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
Send a message.static void
Send a message.static void
Send the message to the specified addresses, ignoring any recipients specified in the message itself.static void
Send the message to the specified addresses, ignoring any recipients specified in the message itself.abstract void
Transport.sendMessage
(Message msg, Address[] addresses) Send the Message to the specified list of addresses.void
Set the specified flags on the messages specified in the array. -
Uses of Message in javax.mail.event
Fields in javax.mail.event declared as MessageModifier and TypeFieldDescriptionprotected 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 javax.mail.event that return MessageModifier and TypeMethodDescriptionMessageChangedEvent.getMessage()
Return the changed 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 javax.mail.event with parameters of type MessageModifierConstructorDescriptionMessageChangedEvent
(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 javax.mail.internet
Subclasses of Message in javax.mail.internetModifier and TypeClassDescriptionclass
This class represents a MIME style email message.Methods in javax.mail.internet that return Message -
Uses of Message in javax.mail.search
Methods in javax.mail.search with parameters of type MessageModifier and TypeMethodDescriptionboolean
The AND operation.boolean
The match method.boolean
The comparison method.boolean
Check whether the address string specified in the constructor is a substring of the From address of this Message.boolean
The address comparator.boolean
The header match method.boolean
The match method.boolean
The match method.boolean
boolean
The OR operation.boolean
The match method.boolean
Check whether the address specified in the constructor is a substring of the recipient address of this Message.boolean
The match method.abstract boolean
This method applies a specific match criterion to the given message and returns the result.boolean
The match method.boolean
The match method.boolean
The match method.