Uses of Class
jakarta.mail.Message
Packages that use Message
Package
Description
The Jakarta Mail API
provides classes that model a mail system.
Listeners and events for the Jakarta Mail API.
Classes specific to Internet mail systems.
Message search terms for the Jakarta Mail API.
Support for creating and parsing Delivery Status Notifications.
An EXPERIMENTAL IMAP protocol provider that supports the
Gmail-specific IMAP protocol extensions
.
An IMAP protocol provider for the Jakarta Mail API
that provides access to an IMAP message store.
A POP3 protocol provider for the Jakarta Mail API
that provides access to a POP3 message store.
An SMTP protocol provider for the Jakarta Mail API
that provides access to an SMTP server.
-
Uses of Message in jakarta.mail
Methods in jakarta.mail that return MessageModifier and TypeMethodDescriptionabstract Message[]Folder.expunge()Expunge (permanently remove) messages marked DELETED.abstract MessageFolder.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 MessageMessage.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 MessageModifier and TypeMethodDescriptionabstract voidFolder.appendMessages(Message[] msgs) Append given Messages to this folder.voidFolder.copyMessages(Message[] msgs, Folder folder) Copy the specified Messages from this Folder into another Folder.voidFolder.fetch(Message[] msgs, FetchProfile fp) Prefetch the items specified in the FetchProfile for the given Messages.longGet the UID for the specified message.protected voidFolder.notifyMessageAddedListeners(Message[] msgs) Notify all MessageCountListeners about the addition of messages into this folder.protected voidFolder.notifyMessageChangedListeners(int type, Message msg) Notify all MessageChangedListeners.protected voidFolder.notifyMessageRemovedListeners(boolean removed, Message[] msgs) Notify all MessageCountListeners about the removal of messages from this Folder.protected voidTransport.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 voidSend a message.static voidSend the message to the specified addresses, ignoring any recipients specified in the message itself.static voidSend the message to the specified addresses, ignoring any recipients specified in the message itself.static voidSend a message.abstract voidTransport.sendMessage(Message msg, Address[] addresses) Send the Message to the specified list of addresses.voidSet the specified flags on the messages specified in the array. -
Uses of Message in jakarta.mail.event
Fields in jakarta.mail.event declared as MessageModifier and TypeFieldDescriptionprotected MessageMessageChangedEvent.msgThe message that changed.protected MessageTransportEvent.msgThe Message to which this event applies.protected Message[]MessageCountEvent.msgsThe messages.Methods in jakarta.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 jakarta.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 jakarta.mail.internet
Subclasses of Message in jakarta.mail.internetModifier and TypeClassDescriptionclassThis class represents a MIME style email message.Methods in jakarta.mail.internet that return Message -
Uses of Message in jakarta.mail.search
Methods in jakarta.mail.search with parameters of type MessageModifier and TypeMethodDescriptionbooleanThe AND operation.booleanThe match method.booleanThe comparison method.booleanCheck whether the address string specified in the constructor is a substring of the From address of this Message.booleanThe address comparator.booleanThe header match method.booleanThe match method.booleanThe match method.booleanbooleanThe OR operation.booleanThe match method.booleanCheck whether the address specified in the constructor is a substring of the recipient address of this Message.booleanThe match method.abstract booleanThis method applies a specific match criterion to the given message and returns the result.booleanThe match method.booleanThe match method.booleanThe match method. -
Uses of Message in org.eclipse.angus.mail.dsn
Subclasses of Message in org.eclipse.angus.mail.dsnModifier and TypeClassDescriptionclassA special MimeMessage object that contains only message headers, no content. -
Uses of Message in org.eclipse.angus.mail.gimap
Subclasses of Message in org.eclipse.angus.mail.gimapMethods in org.eclipse.angus.mail.gimap with parameters of type MessageModifier and TypeMethodDescriptionbooleanThe match method.booleanThe match method.booleanThe match method.voidSet the specified labels for the given array of messages. -
Uses of Message in org.eclipse.angus.mail.imap
Subclasses of Message in org.eclipse.angus.mail.imapMethods in org.eclipse.angus.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.getMessages()Get all Message objects from this Folder.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 org.eclipse.angus.mail.imap with parameters of type MessageModifier and TypeMethodDescriptionMessage[]IMAPFolder.addMessages(Message[] msgs) Append the given messages into this folder.voidIMAPFolder.appendMessages(Message[] msgs) Append the given messages into this folder.org.eclipse.angus.mail.imap.AppendUID[]IMAPFolder.appendUIDMessages(Message[] msgs) Append the given messages into this folder.voidIMAPFolder.copyMessages(Message[] msgs, Folder folder) Copy the specified messages from this folder, to the specified destination.org.eclipse.angus.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.voidIMAPFolder.fetch(Message[] msgs, FetchProfile fp) Prefetch attributes, based on the given FetchProfile.longGet the UID for the specified message.booleanThe match method.booleanThe match method.booleanThe match method.voidIMAPFolder.moveMessages(Message[] msgs, Folder folder) Move the specified messages from this folder, to the specified destination.org.eclipse.angus.mail.imap.AppendUID[]IMAPFolder.moveUIDMessages(Message[] msgs, Folder folder) Move the specified messages from this folder, to the specified destination.Message[]IMAPFolder.search(SearchTerm term, Message[] msgs) Search the folder for messages matching the given term.voidSet the specified flags for the given array of messages. -
Uses of Message in org.eclipse.angus.mail.pop3
Subclasses of Message in org.eclipse.angus.mail.pop3Methods in org.eclipse.angus.mail.pop3 that return MessageModifier and TypeMethodDescriptionMessage[]POP3Folder.expunge()Always throwsMethodNotSupportedExceptionbecause the POP3 protocol doesn't support expunging messages without closing the folder; call theclosemethod with theexpungeargument set totrueinstead.POP3Folder.getMessage(int msgno) Methods in org.eclipse.angus.mail.pop3 with parameters of type MessageModifier and TypeMethodDescriptionvoidPOP3Folder.appendMessages(Message[] msgs) Always throwsMethodNotSupportedExceptionbecause the POP3 protocol doesn't support appending messages.voidPOP3Folder.fetch(Message[] msgs, FetchProfile fp) Prefetch information about POP3 messages.Return the unique ID string for this message, or null if not available.protected voidPOP3Folder.notifyMessageChangedListeners(int type, Message m) -
Uses of Message in org.eclipse.angus.mail.smtp
Subclasses of Message in org.eclipse.angus.mail.smtpModifier and TypeClassDescriptionclassThis 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 org.eclipse.angus.mail.smtp with parameters of type MessageModifier and TypeMethodDescriptionprotected voidSMTPTransport.notifyTransportListeners(int type, Address[] validSent, Address[] validUnsent, Address[] invalid, Message msg) Notify all TransportListeners.voidSMTPTransport.sendMessage(Message message, Address[] addresses) Send the Message to the specified list of addresses.