Uses of Class
javax.mail.Message
-
Packages that use Message Package Description com.sun.mail.imap An IMAP protocol provider for the Jakarta Mail API that provides access to an IMAP message store.com.sun.mail.pop3 A POP3 protocol provider for the Jakarta Mail API that provides access to a POP3 message store.com.sun.mail.smtp An SMTP protocol provider for the Jakarta Mail API that provides access to an SMTP server.javax.mail The Jakarta Mail API provides classes that model a mail system.javax.mail.event Listeners and events for the Jakarta Mail API.javax.mail.internet Classes specific to Internet mail systems.javax.mail.search Message search terms for the Jakarta Mail API. -
-
Uses of Message in com.sun.mail.imap
Subclasses of Message in com.sun.mail.imap Modifier and Type Class Description classIMAPMessageThis class implements an IMAPMessage object.classIMAPNestedMessageThis class implements a nested IMAP messageMethods in com.sun.mail.imap that return Message Modifier and Type Method Description Message[]IMAPFolder. addMessages(Message[] msgs)Append the given messages into this folder.Message[]DefaultFolder. expunge()Message[]IMAPFolder. expunge()Expunge all messages marked as DELETED.Message[]IMAPFolder. expunge(Message[] msgs)Expunge the indicated messages, which must have been marked as DELETED.MessageIMAPFolder. getMessage(int msgnum)Get the specified message.MessageIMAPFolder. 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 com.sun.mail.imap with parameters of type Message Modifier and Type Method Description Message[]IMAPFolder. addMessages(Message[] msgs)Append the given messages into this folder.voidDefaultFolder. appendMessages(Message[] msgs)voidIMAPFolder. appendMessages(Message[] msgs)Append the given messages into this folder.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.AppendUID[]IMAPFolder. copyUIDMessages(Message[] msgs, Folder folder)Copy the specified messages from this folder, to the specified destination.Message[]IMAPFolder. expunge(Message[] msgs)Expunge the indicated messages, which must have been marked as DELETED.voidIMAPFolder. fetch(Message[] msgs, FetchProfile fp)Prefetch attributes, based on the given FetchProfile.longIMAPFolder. getUID(Message message)Get the UID for the specified message.booleanModifiedSinceTerm. match(Message msg)The match method.booleanOlderTerm. match(Message msg)The match method.booleanYoungerTerm. match(Message msg)The match method.voidIMAPFolder. moveMessages(Message[] msgs, Folder folder)Move the specified messages from this folder, to the specified destination.AppendUID[]IMAPFolder. moveUIDMessages(Message[] msgs, Folder folder)Move the specified messages from this folder, to the specified destination.IMAPMessage[]MessageCache. removeExpungedMessages(Message[] msgs)Remove expunged messages in msgs from the array, returning a list of removed message objects.Message[]IMAPFolder. search(SearchTerm term, Message[] msgs)Search the folder for messages matching the given term.voidIMAPFolder. setFlags(Message[] msgs, Flags flag, boolean value)Set the specified flags for the given array of messages.static MessageSet[]Utility. toMessageSet(Message[] msgs, Utility.Condition cond)Run thru the given array of messages, apply the given Condition on each message and generate sets of contiguous sequence-numbers for the successful messages.static MessageSet[]Utility. toMessageSetSorted(Message[] msgs, Utility.Condition cond)Sort (a copy of) the given array of messages and then run thru the sorted array of messages, apply the given Condition on each message and generate sets of contiguous sequence-numbers for the successful messages.static UIDSet[]Utility. toUIDSet(Message[] msgs)Return UIDSets for the messages. -
Uses of Message in com.sun.mail.pop3
Subclasses of Message in com.sun.mail.pop3 Modifier and Type Class Description classPOP3MessageA POP3 Message.Methods in com.sun.mail.pop3 that return Message Modifier and Type Method Description Message[]DefaultFolder. expunge()Message[]POP3Folder. expunge()Always throwsMethodNotSupportedExceptionbecause the POP3 protocol doesn't support expunging messages without closing the folder; call theclosemethod with theexpungeargument set totrueinstead.MessageDefaultFolder. getMessage(int msgno)MessagePOP3Folder. getMessage(int msgno)Methods in com.sun.mail.pop3 with parameters of type Message Modifier and Type Method Description voidDefaultFolder. appendMessages(Message[] msgs)voidPOP3Folder. appendMessages(Message[] msgs)Always throwsMethodNotSupportedExceptionbecause the POP3 protocol doesn't support appending messages.voidPOP3Folder. fetch(Message[] msgs, FetchProfile fp)Prefetch information about POP3 messages.StringPOP3Folder. getUID(Message msg)Return the unique ID string for this message, or null if not available.protected voidPOP3Folder. notifyMessageChangedListeners(int type, Message m) -
Uses of Message in com.sun.mail.smtp
Subclasses of Message in com.sun.mail.smtp Modifier and Type Class Description classSMTPMessageThis 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 Message Modifier and Type Method Description protected 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. -
Uses of Message in javax.mail
Methods in javax.mail that return Message Modifier and Type Method Description abstract Message[]Folder. expunge()Expunge (permanently remove) messages marked DELETED.abstract MessageFolder. getMessage(int msgnum)Get the Message object corresponding to the given message number.MessageMessageContext. getMessage()Return the Message that contains the content.MessageUIDFolder. 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 javax.mail with parameters of type Message Modifier and Type Method Description abstract 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.longUIDFolder. getUID(Message message)Get 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 voidTransport. send(Message msg)Send a message.static voidTransport. send(Message msg, String user, String password)Send a message.static voidTransport. send(Message msg, Address[] addresses)Send the message to the specified addresses, ignoring any recipients specified in the message itself.static voidTransport. send(Message msg, Address[] addresses, String user, String password)Send the message to the specified addresses, ignoring any recipients specified in the message itself.abstract voidTransport. sendMessage(Message msg, Address[] addresses)Send the Message to the specified list of addresses.voidFolder. setFlags(Message[] msgs, Flags flag, boolean value)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 Message Modifier and Type Field Description protected MessageMessageChangedEvent. msgThe message that changed.protected MessageTransportEvent. msgThe Message to which this event applies.protected Message[]MessageCountEvent. msgsThe messages.Methods in javax.mail.event that return Message Modifier and Type Method Description MessageMessageChangedEvent. getMessage()Return the changed Message.MessageTransportEvent. 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 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 javax.mail.internet
Subclasses of Message in javax.mail.internet Modifier and Type Class Description classMimeMessageThis class represents a MIME style email message.Methods in javax.mail.internet that return Message Modifier and Type Method Description MessageMimeMessage. reply(boolean replyToAll)Get a new Message suitable for a reply to this message.MessageMimeMessage. reply(boolean replyToAll, boolean setAnswered)Get a new Message suitable for a reply to this message. -
Uses of Message in javax.mail.search
Methods in javax.mail.search with parameters of type Message Modifier and Type Method Description booleanAndTerm. match(Message msg)The AND operation.booleanBodyTerm. match(Message msg)The match method.booleanFlagTerm. match(Message msg)The comparison method.booleanFromStringTerm. match(Message msg)Check whether the address string specified in the constructor is a substring of the From address of this Message.booleanFromTerm. match(Message msg)The address comparator.booleanHeaderTerm. match(Message msg)The header match method.booleanMessageIDTerm. match(Message msg)The match method.booleanMessageNumberTerm. match(Message msg)The match method.booleanNotTerm. match(Message msg)booleanOrTerm. match(Message msg)The OR operation.booleanReceivedDateTerm. match(Message msg)The match method.booleanRecipientStringTerm. match(Message msg)Check whether the address specified in the constructor is a substring of the recipient address of this Message.booleanRecipientTerm. match(Message msg)The match method.abstract booleanSearchTerm. match(Message msg)This method applies a specific match criterion to the given message and returns the result.booleanSentDateTerm. match(Message msg)The match method.booleanSizeTerm. match(Message msg)The match method.booleanSubjectTerm. match(Message msg)The match method.
-