Uses of Class
javax.mail.MessagingException
-
Packages that use MessagingException Package Description gnu.mail.providers.imap This is a provider for the Internet Message Access Protocol, version 4rev1 (IMAP4rev1), as detailed in RFC 3501.gnu.mail.providers.maildir gnu.mail.providers.mbox This is a provider for the UNIXmboxmailbox file format, used by many 3rd-party MUAs including Netscape, Mozilla, mutt, elm, and pine.gnu.mail.providers.nntp This is a provider for the Network News Transfer Protocol (NNTP), as detailed in RFC 977.gnu.mail.providers.pop3 This is a provider for the Internet Post Office Protocol, version 3 (POP3), as detailed in RFC 1939.gnu.mail.providers.smtp A provider for the Simple Mail Transfer Protocol (SMTP), as detailed in RFC 2821, including support for ESMTP service extensions.javax.mail Classes modelling a mail system.javax.mail.internet Classes modelling Internet mail systems.javax.mail.search Search expressions for executing searches on the messages in a folder. -
-
Uses of MessagingException in gnu.mail.providers.imap
Methods in gnu.mail.providers.imap that throw MessagingException Modifier and Type Method Description voidIMAPFolder. addACL(ACL ace)Deprecated.this API will probably change incompatibly soonvoidIMAPFolder. addRights(ACL ace)Deprecated.this API will probably change incompatibly soonvoidIMAPFolder. appendMessages(Message[] messages)Appends the specified set of messages to this folder.voidIMAPFolder. close(boolean expunge)Closes this folder.voidIMAPStore. close()Closes the connection.booleanIMAPFolder. create(int type)Create this folder.booleanIMAPFolder. delete(boolean flag)Delete this folder.booleanIMAPFolder. exists()Indicates whether this folder exists.Message[]IMAPFolder. expunge()Expunges this folder.voidIMAPFolder. fetch(Message[] messages, FetchProfile fp)IMAP fetch routine.ACL[]IMAPFolder. getACL()Deprecated.this API will probably change incompatibly soonjava.util.EnumerationIMAPMessage. getAllHeaderLines()java.util.EnumerationIMAPMessage. getAllHeaders()BodyPartIMAPMultipartDataSource. getBodyPart(int index)Returns the secified sub-part of the multipart.java.lang.ObjectIMAPBodyPart. getContent()java.lang.ObjectIMAPMessage. getContent()protected java.io.InputStreamIMAPBodyPart. getContentStream()Returns the raw content stream.protected java.io.InputStreamIMAPMessage. getContentStream()Returns the raw content stream.javax.activation.DataHandlerIMAPBodyPart. getDataHandler()Returns a data handler for this part's content.javax.activation.DataHandlerIMAPMessage. getDataHandler()Returns a data handler for this message's content.FolderIMAPStore. getDefaultFolder()Returns the root folder.intIMAPFolder. getDeletedMessageCount()Returns the number of deleted messages in this folder.FlagsIMAPMessage. getFlags()FolderIMAPFolder. getFolder(java.lang.String name)Returns a subfolder with the specified name.FolderIMAPStore. getFolder(java.lang.String name)Returns the folder with the specified name.FolderIMAPStore. getFolder(URLName urlname)Returns the folder whose name is the file part of the specified URLName.java.lang.String[]IMAPMessage. getHeader(java.lang.String name)Returns the specified header field.java.lang.StringIMAPMessage. getHeader(java.lang.String name, java.lang.String delimiter)Returns the specified header field.intIMAPBodyPart. getLineCount()Returns the number of text lines in the content of this body part.java.util.EnumerationIMAPMessage. getMatchingHeaderLines(java.lang.String[] names)java.util.EnumerationIMAPMessage. getMatchingHeaders(java.lang.String[] names)MessageIMAPFolder. getMessage(int msgnum)Returns the specified message number from this folder.MessageIMAPFolder. getMessageByUID(long uid)intIMAPFolder. getMessageCount()Returns the number of messages in this folder.intIMAPFolder. getMessageCountByCriteria(java.lang.String criteria)Convenience method for returning the number of messages in the current folder that match the single criteria.Message[]IMAPFolder. getMessagesByUID(long[] uids)Message[]IMAPFolder. getMessagesByUID(long start, long end)intIMAPFolder. getNewMessageCount()Returns the number of new messages in this folder.java.util.EnumerationIMAPMessage. getNonMatchingHeaderLines(java.lang.String[] names)java.util.EnumerationIMAPMessage. getNonMatchingHeaders(java.lang.String[] names)FolderIMAPFolder. getParent()Returns the parent folder of this folder.Folder[]IMAPStore. getPersonalNamespaces()Returns a list of folders representing personal namespaces.org.jpackage.mail.inet.imap.Quota[]IMAPFolder. getQuota()Returns the quotas for this folder.org.jpackage.mail.inet.imap.QuotaIMAPStore. getQuota(java.lang.String root)Returns the quota for the specified quota root.java.util.DateIMAPMessage. getReceivedDate()Returns the date on which this message was received.charIMAPFolder. getSeparator()Returns the path separator charcter.Folder[]IMAPStore. getSharedNamespaces()Returns a list of folders representing shared namespaces.intIMAPBodyPart. getSize()Returns the content size of this body part in bytes.protected javax.net.ssl.TrustManagerIMAPStore. getTrustManager()Returns a trust manager used for TLS negotiation.intIMAPFolder. getType()Returns the type of this folder.longIMAPFolder. getUID(Message message)longIMAPFolder. getUIDValidity()intIMAPFolder. getUnreadMessageCount()Returns the number of unread messages in this folder.Folder[]IMAPStore. getUserNamespaces()Returns a list of folders representing other users' namespaces.booleanIMAPFolder. hasNewMessages()Indicates whether this folder contains new messages.booleanIMAPMessage. isSet(Flags.Flag flag)Folder[]IMAPFolder. list(java.lang.String pattern)Returns the subfolders for this folder.RightsIMAPFolder. listRights(java.lang.String name)Deprecated.this API will probably change incompatibly soonFolder[]IMAPFolder. listSubscribed(java.lang.String pattern)Returns the subscribed subfolders for this folder.RightsIMAPFolder. myRights()Deprecated.this API will probably change incompatibly soonvoidIMAPFolder. open(int mode)Opens this folder.protected booleanIMAPStore. protocolConnect(java.lang.String host, int port, java.lang.String username, java.lang.String password)Connects to the IMAP server and authenticates with the specified parameters.voidIMAPFolder. removeACL(java.lang.String name)Deprecated.this API will probably change incompatibly soonvoidIMAPFolder. removeRights(ACL ace)Deprecated.this API will probably change incompatibly soonbooleanIMAPFolder. renameTo(Folder folder)Rename this folder.Message[]IMAPFolder. search(SearchTerm term)IMAP search function.Message[]IMAPFolder. search(SearchTerm term, Message[] msgs)IMAP search function.voidIMAPMessage. setFlags(Flags flag, boolean set)Set the specified flags.voidIMAPStore. setQuota(java.lang.String root, org.jpackage.mail.inet.imap.Quota.Resource[] resources)Sets the quota resource set for the specified quota root.voidIMAPFolder. setSubscribed(boolean flag)voidIMAPMessage. writeTo(java.io.OutputStream msgStream)voidIMAPMessage. writeTo(java.io.OutputStream msgStream, java.lang.String[] ignoreList)Constructors in gnu.mail.providers.imap that throw MessagingException Constructor Description IMAPBodyPart(IMAPMessage message, IMAPMultipart parent, java.lang.String section, InternetHeaders headers, int size, int lines)Called by the IMAPMessage. -
Uses of MessagingException in gnu.mail.providers.maildir
Methods in gnu.mail.providers.maildir that throw MessagingException Modifier and Type Method Description voidMaildirFolder. appendMessages(Message[] m)Appends messages to this folder.voidMaildirFolder. close(boolean expunge)Closes this folder.booleanMaildirFolder. create(int type)Creates this folder in the store.booleanMaildirFolder. delete(boolean recurse)Deletes this folder.booleanMaildirFolder. exists()Indicates whether this folder exists.Message[]MaildirFolder. expunge()Expunges this folder.java.util.EnumerationMaildirMessage. getAllHeaderLines()java.util.EnumerationMaildirMessage. getAllHeaders()protected java.io.InputStreamMaildirMessage. getContentStream()javax.activation.DataHandlerMaildirMessage. getDataHandler()FolderMaildirStore. getDefaultFolder()Returns the default folder.FolderMaildirFolder. getFolder(java.lang.String filename)Returns the subfolder of this folder with the specified name.FolderMaildirStore. getFolder(java.lang.String filename)Returns the folder with the specified filename.FolderMaildirStore. getFolder(URLName urlname)Returns the folder specified by the filename of the URLName.java.lang.String[]MaildirMessage. getHeader(java.lang.String name)java.lang.StringMaildirMessage. getHeader(java.lang.String name, java.lang.String delimiter)java.util.EnumerationMaildirMessage. getMatchingHeaderLines(java.lang.String[] names)java.util.EnumerationMaildirMessage. getMatchingHeaders(java.lang.String[] names)MessageMaildirFolder. getMessage(int msgnum)Returns the specified message number from this folder.intMaildirFolder. getMessageCount()Returns the number of messages in this folder.Message[]MaildirFolder. getMessages()Returns the messages in this folder.intMaildirFolder. getNewMessageCount()Returns the number of new messages in this folder.java.util.EnumerationMaildirMessage. getNonMatchingHeaderLines(java.lang.String[] names)java.util.EnumerationMaildirMessage. getNonMatchingHeaders(java.lang.String[] names)FolderMaildirFolder. getParent()Returns the parent folder.charMaildirFolder. getSeparator()Returns the separator character.intMaildirFolder. getType()Returns the type of this folder.URLNameMaildirFolder. getURLName()Return a URLName representing this folder.booleanMaildirFolder. hasNewMessages()Indicates whether this folder contains new messages.Folder[]MaildirFolder. list()Returns the subfolders of this folder.Folder[]MaildirFolder. list(java.lang.String pattern)Returns the subfolders of this folder matching the specified pattern.voidMaildirFolder. open(int mode)Opens this folder.protected booleanMaildirStore. protocolConnect(java.lang.String host, int port, java.lang.String username, java.lang.String password)There isn't a protocol to implement, so this method just returns.booleanMaildirFolder. renameTo(Folder folder)Renames this folder.voidMaildirMessage. setFlags(Flags flag, boolean set)Set the specified flags(reflected in theinfofield). -
Uses of MessagingException in gnu.mail.providers.mbox
Methods in gnu.mail.providers.mbox that throw MessagingException Modifier and Type Method Description voidMboxFolder. appendMessages(Message[] m)Appends messages to this folder.voidMboxFolder. close(boolean expunge)Closes this folder.booleanMboxFolder. create(int type)Creates this folder in the store.booleanMboxFolder. delete(boolean recurse)Deletes this folder.booleanMboxFolder. exists()Indicates whether this folder exists.Message[]MboxFolder. expunge()Expunges this folder.protected java.lang.StringMboxFolder. fromLine(MboxMessage message)Returns the From_ line for the specified mbox message.FolderMboxStore. getDefaultFolder()Returns the default folder.FolderMboxFolder. getFolder(java.lang.String name)Returns the subfolder of this folder with the specified name.FolderMboxStore. getFolder(java.lang.String name)Returns the folder with the specified filename.FolderMboxStore. getFolder(URLName urlname)Returns the folder specified by the filename of the URLName.MessageMboxFolder. getMessage(int msgnum)Returns the specified message number from this folder.intMboxFolder. getMessageCount()Returns the number of messages in this folder.Message[]MboxFolder. getMessages()Returns the messages in this folder.FolderMboxFolder. getParent()Returns the parent folder.charMboxFolder. getSeparator()Returns the separator character.intMboxFolder. getType()Returns the type of this folder.URLNameMboxFolder. getURLName()Return a URLName representing this folder.booleanMboxFolder. hasNewMessages()Indicates whether this folder contains new messages.Folder[]MboxFolder. list()Returns the subfolders of this folder.Folder[]MboxFolder. list(java.lang.String pattern)Returns the subfolders of this folder matching the specified pattern.voidMboxFolder. open(int mode)Opens this folder.protected booleanMboxStore. protocolConnect(java.lang.String host, int port, java.lang.String username, java.lang.String password)There isn't a protocol to implement, so this method just returns.booleanMboxFolder. renameTo(Folder folder)Renames this folder.voidMboxMessage. setFlags(Flags flag, boolean set)Set the specified flags(reflected in theStatusheader).protected voidMboxMessage. updateHeaders()Updates the status header from the current flags.Constructors in gnu.mail.providers.mbox that throw MessagingException Constructor Description MboxMessage(MboxFolder folder, java.lang.String fromLine, java.io.InputStream in, int msgnum)Creates a Mbox message.MboxMessage(MboxFolder folder, MimeMessage message, int msgnum)Creates a Mbox message. -
Uses of MessagingException in gnu.mail.providers.nntp
Methods in gnu.mail.providers.nntp that throw MessagingException Modifier and Type Method Description voidNNTPFolder. appendMessages(Message[] messages)NNTP servers are read-only.voidNNTPRootFolder. appendMessages(Message[] messages)voidNNTPFolder. close(boolean expunge)This method has no particular meaning in NNTP.voidNNTPRootFolder. close(boolean expunge)voidNNTPStore. close()Close the connection.voidNNTPTransport. close()Close the connection.booleanNNTPFolder. create(int type)NNTP servers are read-only.booleanNNTPRootFolder. create(int type)booleanNNTPFolder. delete(boolean recurse)NNTP servers are read-only.booleanNNTPRootFolder. delete(boolean flag)booleanNNTPFolder. exists()Indicates whether the newsgroup is present on the server.booleanNNTPRootFolder. exists()Message[]NNTPFolder. expunge()NNTP servers are read-only.Message[]NNTPRootFolder. expunge()voidNNTPFolder. fetch(Message[] msgs, FetchProfile fp)Prefetch.java.util.EnumerationNNTPMessage. getAllHeaderLines()java.util.EnumerationNNTPMessage. getAllHeaders()java.io.InputStreamNNTPMessage. getContentStream()FolderNNTPStore. getDefaultFolder()Returns the folder representing the "root" namespace.FolderNNTPFolder. getFolder(java.lang.String name)This folder type does not contain other folders.FolderNNTPRootFolder. getFolder(java.lang.String name)Returns a new Folder object associated with the specified name.FolderNNTPStore. getFolder(java.lang.String name)Returns a folder by name.FolderNNTPStore. getFolder(URLName url)Returns the folder whose name corresponds to thefilepart of the specified URL.java.lang.String[]NNTPMessage. getHeader(java.lang.String name)java.lang.StringNNTPMessage. getHeader(java.lang.String name, java.lang.String delimiter)intNNTPMessage. getLineCount()java.util.EnumerationNNTPMessage. getMatchingHeaderLines(java.lang.String[] names)java.util.EnumerationNNTPMessage. getMatchingHeaders(java.lang.String[] names)MessageNNTPFolder. getMessage(int msgnum)Returns the article corresponding to the specified article number.MessageNNTPRootFolder. getMessage(int msgnum)intNNTPFolder. getMessageCount()Returns the number of articles in this newsgroup.intNNTPRootFolder. getMessageCount()Message[]NNTPFolder. getMessages()Returns all articles in this group.java.util.EnumerationNNTPMessage. getNonMatchingHeaderLines(java.lang.String[] names)java.util.EnumerationNNTPMessage. getNonMatchingHeaders(java.lang.String[] names)FolderNNTPFolder. getParent()This implementation uses a flat namespace, so the parent of any NNTPFolder is the NNTP root folder.FolderNNTPRootFolder. getParent()charNNTPFolder. getSeparator()If we move away from a flat namespace, this might be useful.charNNTPRootFolder. getSeparator()As we're dealing with a flat namespace, the value of this is irrelevant.intNNTPMessage. getSize()intNNTPFolder. getType()Returns the type of this folder.booleanNNTPFolder. hasNewMessages()Indicates whether there are new articles in this newsgroup.booleanNNTPRootFolder. hasNewMessages()Folder[]NNTPFolder. list(java.lang.String pattern)This folder type does not contain other folders.Folder[]NNTPRootFolder. list(ListFolderListener listener)Returns the list of folders matching the specified pattern.Folder[]NNTPRootFolder. list(java.lang.String pattern)Returns the list of folders matching the specified pattern.Folder[]NNTPRootFolder. list(java.lang.String pattern, ListFolderListener listener)Returns the list of folders matching the specified pattern.Folder[]NNTPFolder. listSubscribed(java.lang.String pattern)This folder type does not contain other folders.Folder[]NNTPRootFolder. listSubscribed(java.lang.String pattern)Returns the list of subscribed folders matching the specified pattern.voidNNTPFolder. open(int mode)This method has no particular meaning in NNTP.voidNNTPRootFolder. open(int mode)protected booleanNNTPStore. protocolConnect(java.lang.String host, int port, java.lang.String username, java.lang.String password)Performs the protocol connection.protected booleanNNTPTransport. protocolConnect(java.lang.String host, int port, java.lang.String username, java.lang.String password)Performs the protocol connection.booleanNNTPFolder. renameTo(Folder folder)NNTP servers are read-only.booleanNNTPRootFolder. renameTo(Folder folder)voidNNTPMessage. saveChanges()voidNNTPTransport. sendMessage(Message message, Address[] addresses)Post an article.voidNNTPMessage. setFlags(Flags flag, boolean set)voidNNTPFolder. setSubscribed(boolean flag)Subscribes or unsubscribes to this newsgroup.voidNNTPRootFolder. setSubscribed(boolean flag)This folder is always "subscribed". -
Uses of MessagingException in gnu.mail.providers.pop3
Methods in gnu.mail.providers.pop3 that throw MessagingException Modifier and Type Method Description voidPOP3Folder. appendMessages(Message[] messages)You can't append messages to a POP3 folder.voidPOP3Folder. close(boolean expunge)Closes this folder.voidPOP3Store. close()Closes the connection.booleanPOP3Folder. create(int i)POP3 folders can't be created, deleted, or renamed.booleanPOP3Folder. delete(boolean flag)POP3 folders can't be created, deleted, or renamed.booleanPOP3Folder. exists()Indicates whether this folder exists.Message[]POP3Folder. expunge()Expunges this folder.voidPOP3Folder. fetch(Message[] messages, FetchProfile fp)Fetches headers and/or content for the specified messages.java.util.EnumerationPOP3Message. getAllHeaderLines()Causes the headers to be read.java.util.EnumerationPOP3Message. getAllHeaders()Causes the headers to be read.protected java.io.InputStreamPOP3Message. getContentStream()Causes the content to be read in.javax.activation.DataHandlerPOP3Message. getDataHandler()Causes the content to be read in.FolderPOP3Store. getDefaultFolder()Returns the root folder.FolderPOP3Folder. getFolder(java.lang.String s)POP3 folders can't contain subfolders.FolderPOP3Store. getFolder(java.lang.String s)Returns the folder with the specified name.FolderPOP3Store. getFolder(URLName urlname)Returns the folder whose name is the file part of the specified URLName.java.lang.String[]POP3Message. getHeader(java.lang.String name)Causes the headers to be read.java.lang.StringPOP3Message. getHeader(java.lang.String name, java.lang.String delimiter)Causes the headers to be read.java.util.EnumerationPOP3Message. getMatchingHeaderLines(java.lang.String[] names)Causes the headers to be read.java.util.EnumerationPOP3Message. getMatchingHeaders(java.lang.String[] names)Causes the headers to be read.MessagePOP3Folder. getMessage(int msgnum)Returns the specified message from this folder.intPOP3Folder. getMessageCount()Returns the number of messages in this folder.java.util.EnumerationPOP3Message. getNonMatchingHeaderLines(java.lang.String[] names)Causes the headers to be read.java.util.EnumerationPOP3Message. getNonMatchingHeaders(java.lang.String[] names)Causes the headers to be read.FolderPOP3Folder. getParent()POP3 folders can't have parents.charPOP3Folder. getSeparator()Returns the path separator charcter.intPOP3Message. getSize()Gets the size of the message.protected javax.net.ssl.TrustManagerPOP3Store. getTrustManager()Returns a trust manager used for TLS negotiation.intPOP3Folder. getType()Returns the type of this folder.java.lang.StringPOP3Folder. getUID(Message message)Returns the unique ID for the given message, ornullif not available.java.lang.StringPOP3Message. getUID()Returns the unique ID for this message.booleanPOP3Folder. hasNewMessages()Indicates whether this folder contains new messages.Folder[]POP3Folder. list()Returns the subfolders for this folder.Folder[]POP3Folder. list(java.lang.String pattern)Returns the subfolders for this folder.voidPOP3Folder. open(int mode)Opens this folder.protected booleanPOP3Store. protocolConnect(java.lang.String host, int port, java.lang.String username, java.lang.String password)Connects to the POP3 server and authenticates with the specified parameters.booleanPOP3Folder. renameTo(Folder folder)POP3 folders can't be created, deleted, or renamed.voidPOP3Message. setFlags(Flags flags, boolean set)Set flags (but only DELETED is supported) add or remove the message from the folder deleted message list.voidPOP3Message. writeTo(java.io.OutputStream msgStream)voidPOP3Message. writeTo(java.io.OutputStream msgStream, java.lang.String[] ignoreList) -
Uses of MessagingException in gnu.mail.providers.smtp
Methods in gnu.mail.providers.smtp that throw MessagingException Modifier and Type Method Description voidSMTPTransport. close()Close this transport.java.lang.StringSMTPTransport. getGreeting()Returns the greeting banner.protected booleanSMTPTransport. protocolConnect(java.lang.String host, int port, java.lang.String username, java.lang.String password)Connects to the SMTP server.voidSMTPTransport. sendMessage(Message message, Address[] addresses)Send the specified message to the server. -
Uses of MessagingException in javax.mail
Subclasses of MessagingException in javax.mail Modifier and Type Class Description classAuthenticationFailedExceptionAn exception thrown to indicate that authentication failed during a service'sconnectmethod.classFolderClosedExceptionAn exception thrown when a method is invoked on a closed folder or one of its messages.classFolderNotFoundExceptionAn exception thrown when a method is invoked on a nonexistent folder.classIllegalWriteExceptionAn exception thrown when a modification of a read-only property is attempted.classMessageRemovedExceptionAn exception thrown when an invalid method is invoked on an expunged message.classMethodNotSupportedExceptionAn exception thrown when an operation is not supported by the implementation.classNoSuchProviderExceptionAn exception thrown on an attempt to instantiate a provider that doesn't exist.classReadOnlyFolderExceptionAn exception thrown when an attempt is made to open a folder in read-write mode when the folder can only be opened read-only.classSendFailedExceptionAn exception thrown when a message cannot be sent.classStoreClosedExceptionAn exception thrown when a method is invoked on a message or folder whose owner store has been closed for some reason.Methods in javax.mail that throw MessagingException Modifier and Type Method Description voidMultipart. addBodyPart(BodyPart part)Adds a body part to this multipart.voidMultipart. addBodyPart(BodyPart part, int index)Inserts a body part at the specified index.abstract voidMessage. addFrom(Address[] addresses)Adds addresses to the identity of the person sending this message.voidPart. addHeader(java.lang.String name, java.lang.String value)Adds the specified value to the existing values for this header name.voidMessage. addRecipient(Message.RecipientType type, Address address)Adds the recipient address of the given type.abstract voidMessage. addRecipients(Message.RecipientType type, Address[] addresses)Adds the recipient addresses of the given type.abstract voidFolder. appendMessages(Message[] msgs)Appends the specified messages to this folder.abstract voidFolder. close(boolean expunge)Closes this folder.voidService. close()Closes this service, terminating any underlying connections.voidService. connect()Connects to this service.voidService. connect(java.lang.String host, int port, java.lang.String user, java.lang.String password)Connects to this service using the specified details.voidService. connect(java.lang.String user, java.lang.String password)Connects to this service.voidService. connect(java.lang.String host, java.lang.String user, java.lang.String password)Connects to this service using the specified details.voidFolder. copyMessages(Message[] msgs, Folder folder)Copies the specified messages into another folder.abstract booleanFolder. create(int type)Create this folder in the store.abstract booleanFolder. delete(boolean recurse)Deletes this folder.abstract booleanFolder. exists()Indicates whether this folder exists in the Store.abstract Message[]Folder. expunge()Expunges (permanently removing) all the messages marked DELETED.voidFolder. fetch(Message[] msgs, FetchProfile fp)Fetches the items specified in the given fetch profile for the specified messages.java.util.EnumerationPart. getAllHeaders()Returns all the headers from this part.Address[]Message. getAllRecipients()Returns all the recipient addresses in the message.BodyPartMultipart. getBodyPart(int index)Get the specified body part.BodyPartMultipartDataSource. getBodyPart(int index)Returns the specified body part.java.lang.ObjectPart. getContent()Returns the content of this part as a Java object.java.lang.StringPart. getContentType()Returns the content-type of the content of this part, ornullif the content-type could not be determined.intMultipart. getCount()Returns the number of enclosed body parts.javax.activation.DataHandlerPart. getDataHandler()Returns a data handler for the content of this part.abstract FolderStore. getDefaultFolder()Returns a folder that represents the root of the primary namespace presented to the user by this store.intFolder. getDeletedMessageCount()Returns the number of deleted messages in this folder.java.lang.StringPart. getDescription()Returns the description of this part.java.lang.StringPart. getDisposition()Returns the disposition of this part.java.lang.StringPart. getFileName()Returns the filename associated with this part, if available.abstract FlagsMessage. getFlags()Returns the flags for this message.abstract FolderFolder. getFolder(java.lang.String name)Return a folder corresponding to the given name.FolderSession. getFolder(URLName url)Get a closed Folder object for the given URLName.abstract FolderStore. getFolder(java.lang.String name)Returns the folder with the given name.abstract FolderStore. getFolder(URLName url)Returns the folder corresponding to the given URLName.abstract Address[]Message. getFrom()Returns the identity of the person(s) who ordered the sending of this message.java.lang.String[]Part. getHeader(java.lang.String name)Returns all the values for the specified header name, ornullif no such headers are available.java.io.InputStreamPart. getInputStream()Returns an input stream for reading the content of this part.intPart. getLineCount()Returns the number of lines in the content of this part, or -1 if the number cannot be determined.java.util.EnumerationPart. getMatchingHeaders(java.lang.String[] names)Returns the matching headers from this part.abstract MessageFolder. getMessage(int msgnum)Returns the message with the given number.MessageUIDFolder. getMessageByUID(long uid)Returns the message corresponding to the given UID, ornullif no such message exists.abstract intFolder. getMessageCount()Returns the number of messages in this folder.Message[]Folder. getMessages()Returns all messages in this folder.Message[]Folder. getMessages(int[] msgnums)Returns the messages for the specified message numbers.Message[]Folder. getMessages(int start, int end)Returns the messages in the given range (inclusive).Message[]UIDFolder. getMessagesByUID(long[] uids)Returns the messages specified by the given UIDs.Message[]UIDFolder. getMessagesByUID(long start, long end)Returns the messages in the given range.intFolder. getNewMessageCount()Returns the number of new messages in this folder.java.util.EnumerationPart. getNonMatchingHeaders(java.lang.String[] names)Returns the non-matching headers from this part.abstract FolderFolder. getParent()Returns the parent folder of this folder, ornullif this folder is the root of a folder hierarchy.Folder[]Store. getPersonalNamespaces()Returns the personal namespaces for the authenticated user.Quota[]QuotaAwareStore. getQuota(java.lang.String root)Returns the quotas for the given quota root.abstract java.util.DateMessage. getReceivedDate()Returns the date this message was received.abstract Address[]Message. getRecipients(Message.RecipientType type)Returns all the recipient addresses of the specified type.Address[]Message. getReplyTo()Returns the addresses to which replies should be directed.abstract java.util.DateMessage. getSentDate()Returns the date this message was sent.abstract charFolder. getSeparator()Return the hierarchy delimiter character for this folder.Folder[]Store. getSharedNamespaces()Returns the shared namespaces.intPart. getSize()Returns the size of the content of this part in bytes, or -1 if the size cannot be determined.abstract java.lang.StringMessage. getSubject()Returns the subject of this message.abstract intFolder. getType()Returns the type of this Folder, i.e.longUIDFolder. getUID(Message message)Returns the UID for the specified message.longUIDFolder. getUIDValidity()Returns the UIDValidity value associated with this folder.intFolder. getUnreadMessageCount()Returns the number of unread messages in this folder.URLNameFolder. getURLName()Return a URLName that can be used as a handle to access this folder.Folder[]Store. getUserNamespaces(java.lang.String user)Returns the personal namespaces for the specified user.abstract booleanFolder. hasNewMessages()Indicates whether this folder has new messages.booleanPart. isMimeType(java.lang.String mimeType)Is this part of the specified MIME type? This method compares only the primary type and subtype.booleanMessage. isSet(Flags.Flag flag)Indicates whether the specified flag is set in this message.Folder[]Folder. list()Returns the list of subfolders of this folder.abstract Folder[]Folder. list(java.lang.String pattern)Returns a list of subfolders matching the specified pattern.Folder[]Folder. listSubscribed()Returns the list of subscribed subfolders of this folder.Folder[]Folder. listSubscribed(java.lang.String pattern)Returns a list of subscribed subfolders matching the specified pattern.booleanMessage. match(SearchTerm term)Indicates whether the specified search term applies to this message.abstract voidFolder. open(int mode)Opens this folder.protected booleanService. protocolConnect(java.lang.String host, int port, java.lang.String user, java.lang.String password)Provider implementation for a service.voidMultipart. removeBodyPart(int index)Removes the body part at the specified index.booleanMultipart. removeBodyPart(BodyPart part)Removes the specified body part from this multipart.voidPart. removeHeader(java.lang.String name)Removes all headers of the specified name.abstract booleanFolder. renameTo(Folder folder)Renames this folder.abstract MessageMessage. reply(boolean replyToAll)Returns a new message suitable for a reply to this message.abstract voidMessage. saveChanges()Save any changes made to this message into its underlying store, if the message was obtained from a folder.Message[]Folder. search(SearchTerm term)Searches this folder for messages matching the specified search term.Message[]Folder. search(SearchTerm term, Message[] msgs)Searches the given messages for those matching the specified search term.static voidTransport. send(Message msg)Sends the specified message.static voidTransport. send(Message msg, Address[] addresses)Sends the message to the specified addresses, ignoring any recipients specified in the message itself.abstract voidTransport. sendMessage(Message msg, Address[] addresses)Sends the message to the specified list of addresses.voidPart. setContent(java.lang.Object obj, java.lang.String type)Sets the content of this part using the specified object.voidPart. setContent(Multipart mp)Sets the multipart content of this part.voidPart. setDataHandler(javax.activation.DataHandler dh)Sets the content of this part using the specified data handler.voidPart. setDescription(java.lang.String description)Sets the description of this part.voidPart. setDisposition(java.lang.String disposition)Sets the disposition of this part.voidPart. setFileName(java.lang.String filename)Sets the filename associated with this part.voidMessage. setFlag(Flags.Flag flag, boolean set)Sets the specified flag on this message to the given value.voidFolder. setFlags(int[] msgnums, Flags flag, boolean value)Sets the specified flags on each of the specified messages.voidFolder. setFlags(int start, int end, Flags flag, boolean value)Set the specified flags on the given range of messages (inclusive).voidFolder. setFlags(Message[] msgs, Flags flag, boolean value)Sets the specified flags on each specified message.abstract voidMessage. setFlags(Flags flag, boolean set)Sets the specified flags on this message to the given value.abstract voidMessage. setFrom()Sets the identity of the person sending this message, as obtained from the property "mail.user".abstract voidMessage. setFrom(Address address)Sets the identity of the person sending this message.voidPart. setHeader(java.lang.String name, java.lang.String value)Sets the value for the specified header name.protected voidMultipart. setMultipartDataSource(MultipartDataSource mp)Configures this multipart from the given data source.voidQuotaAwareStore. setQuota(Quota quota)Sets the quotas for the quota root specified in the quota argument.voidMessage. setRecipient(Message.RecipientType type, Address address)Sets the recipient address of the specified type.abstract voidMessage. setRecipients(Message.RecipientType type, Address[] addresses)Sets the recipient addresses of the specified type.voidMessage. setReplyTo(Address[] addresses)Sets the addresses to which replies should be directed.abstract voidMessage. setSentDate(java.util.Date date)Sets the date this message was sent.abstract voidMessage. setSubject(java.lang.String subject)Sets the subject of this message.voidFolder. setSubscribed(boolean flag)Subscribe to or unsubscribe from this folder.voidPart. setText(java.lang.String text)Sets the textual content of this part, using a MIME type oftext/plain.abstract voidMultipart. writeTo(java.io.OutputStream os)Writes this multipart to the specified byte stream.voidPart. writeTo(java.io.OutputStream os)Writes this part to the specified byte stream. -
Uses of MessagingException in javax.mail.internet
Subclasses of MessagingException in javax.mail.internet Modifier and Type Class Description classAddressExceptionAn exception thrown when an incorrectly formatted address is encountered.classParseExceptionAn exception thrown to indicate an error parsing RFC822 or MIME headers.Methods in javax.mail.internet that throw MessagingException Modifier and Type Method Description voidMimeMessage. addFrom(Address[] addresses)Adds the specified addresses to From header field.voidMimeBodyPart. addHeader(java.lang.String name, java.lang.String value)Adds the specified header.voidMimeMessage. addHeader(java.lang.String name, java.lang.String value)Adds the specified header.voidMimeBodyPart. addHeaderLine(java.lang.String line)Adds an RFC 822 header-line to this part.voidMimeMessage. addHeaderLine(java.lang.String line)Adds an RFC 822 header-line to this message.voidMimePart. addHeaderLine(java.lang.String line)Adds an RFC822 header-line.voidMimeMessage. addRecipients(Message.RecipientType type, java.lang.String addresses)Adds the given addresses to the recipients of the specified type.voidMimeMessage. addRecipients(Message.RecipientType type, Address[] addresses)Adds the given addresses to the recipients of the specified type.voidMimeBodyPart. attachFile(java.io.File file)Use the specified file as the content for this part.voidMimeBodyPart. attachFile(java.lang.String file)Use the specified file as the content for this part.protected InternetHeadersMimeMessage. createInternetHeaders(java.io.InputStream is)Creates the headers from the given input stream.protected InternetHeadersMimeMultipart. createInternetHeaders(java.io.InputStream is)Creates headers from the specified input stream.protected MimeBodyPartMimeMultipart. createMimeBodyPart(java.io.InputStream is)Creates a MIME body part from the specified input stream.protected MimeBodyPartMimeMultipart. createMimeBodyPart(InternetHeaders headers, byte[] content)Creates a MIME body part object from the given headers and byte content.protected MimeMessageMimeMessage. createMimeMessage(Session session)Creates a new MIME message.static java.io.InputStreamMimeUtility. decode(java.io.InputStream is, java.lang.String encoding)Decodes the given input stream.static java.io.OutputStreamMimeUtility. encode(java.io.OutputStream os, java.lang.String encoding)Encodes the given output stream.static java.io.OutputStreamMimeUtility. encode(java.io.OutputStream os, java.lang.String encoding, java.lang.String filename)Encodes the given output stream.java.util.EnumerationMimeBodyPart. getAllHeaderLines()Returns all the header-lines.java.util.EnumerationMimeMessage. getAllHeaderLines()Returns all the header-lines.java.util.EnumerationMimePart. getAllHeaderLines()Returns all the header-lines.java.util.EnumerationMimeBodyPart. getAllHeaders()Returns all the headers.java.util.EnumerationMimeMessage. getAllHeaders()Returns all the headers.Address[]MimeMessage. getAllRecipients()Returns all the recipients.BodyPartMimeMultipart. getBodyPart(int index)Returns the specified body part.BodyPartMimeMultipart. getBodyPart(java.lang.String CID)Returns the body part identified by the given Content-ID (CID).java.lang.ObjectMimeBodyPart. getContent()Returns this part's content as a Java object.java.lang.ObjectMimeMessage. getContent()Returns this message's content as a Java object.java.lang.StringMimeBodyPart. getContentID()Returns the value of the Content-ID header field.java.lang.StringMimeMessage. getContentID()Returns the value of the Content-ID header field.java.lang.StringMimePart. getContentID()Returns the value of the Content-ID header field of this part.java.lang.String[]MimeBodyPart. getContentLanguage()Returns the languages specified in the Content-Language header of this part, as defined by RFC 1766.java.lang.String[]MimeMessage. getContentLanguage()Returns the languages specified in the Content-Language header field of this message, as defined by RFC 1766.java.lang.String[]MimePart. getContentLanguage()Returns the languages specified in the Content-Language header of this part, as defined by RFC 1766.java.lang.StringMimeBodyPart. getContentMD5()Returns the value of the Content-MD5 header field.java.lang.StringMimeMessage. getContentMD5()Returns the value of the Content-MD5 header field.java.lang.StringMimePart. getContentMD5()Returns the value of the Content-MD5 header field of this part.protected java.io.InputStreamMimeBodyPart. getContentStream()Returns the unencoded bytes of the content.protected java.io.InputStreamMimeMessage. getContentStream()Returns the unencoded bytes of the content.java.lang.StringMimeBodyPart. getContentType()Returns the value of the RFC 822 Content-Type header field, or "text/plain" if the header is not available.java.lang.StringMimeMessage. getContentType()Returns the value of the RFC 822 Content-Type header field, or "text/plain" if the header is not available.intMimeMultipart. getCount()Returns the number of component body parts.javax.activation.DataHandlerMimeBodyPart. getDataHandler()Returns a data handler for accessing this part's content.javax.activation.DataHandlerMimeMessage. getDataHandler()Returns a data handler for accessing this message's content.java.lang.StringMimeBodyPart. getDescription()Returns the Content-Description header field of this part.java.lang.StringMimeMessage. getDescription()Returns the Content-Description header field of this message.java.lang.StringMimeBodyPart. getDisposition()Returns the value of the RFC 822 Content-Disposition header field, ornullif the header is not available.java.lang.StringMimeMessage. getDisposition()Returns the value of the RFC 822 Content-Disposition header field, ornullif the header is not available.java.lang.StringMimeBodyPart. getEncoding()Returns the value of the Content-Transfer-Encoding header field.java.lang.StringMimeMessage. getEncoding()Returns the value of the Content-Transfer-Encoding header field.java.lang.StringMimePart. getEncoding()Returns the value of the Content-Transfer-Encoding header field of this part.java.lang.StringMimeBodyPart. getFileName()Returns the filename associated with this body part.java.lang.StringMimeMessage. getFileName()Returns the filename associated with this message.FlagsMimeMessage. getFlags()Returns the flags for this message.Address[]MimeMessage. getFrom()Returns the value of the RFC 822 From header field.java.lang.String[]MimeBodyPart. getHeader(java.lang.String name)Returns all the values for the specified header name.java.lang.StringMimeBodyPart. getHeader(java.lang.String name, java.lang.String delimiter)Returns all the values for the specified header name as a single string, with headers separated by the given delimiter.java.lang.String[]MimeMessage. getHeader(java.lang.String name)Returns all the values for the specified header name.java.lang.StringMimeMessage. getHeader(java.lang.String name, java.lang.String delimiter)Returns all the values for the specified header name as a single string, with headers separated by the given delimiter.java.lang.StringMimePart. getHeader(java.lang.String header_name, java.lang.String delimiter)Returns the values of all header fields for the specified name, returned as a single String with the values separated by the given delimiter.java.io.InputStreamMimeBodyPart. getInputStream()Returns a decoded input stream for this part's content.java.io.InputStreamMimeMessage. getInputStream()Returns a decoded input stream for this message's content.intMimeBodyPart. getLineCount()Returns the number of lines in the content of this body part, or -1 if this number cannot be determined.intMimeMessage. getLineCount()Returns the number of lines in the content of this message, or -1 if this number cannot be determined.java.util.EnumerationMimeBodyPart. getMatchingHeaderLines(java.lang.String[] names)Returns all the header-lines with any of the given names.java.util.EnumerationMimeMessage. getMatchingHeaderLines(java.lang.String[] names)Returns all the header-lines with any of the given names.java.util.EnumerationMimePart. getMatchingHeaderLines(java.lang.String[] names)Returns all the header-lines with any of the given names.java.util.EnumerationMimeBodyPart. getMatchingHeaders(java.lang.String[] names)Returns all the headers with any of the given names.java.util.EnumerationMimeMessage. getMatchingHeaders(java.lang.String[] names)Returns all the headers with any of the given names.java.lang.StringMimeMessage. getMessageID()Returns the value of the Message-ID header field.java.util.EnumerationMimeBodyPart. getNonMatchingHeaderLines(java.lang.String[] names)Returns all the header-lines without any of the given names.java.util.EnumerationMimeMessage. getNonMatchingHeaderLines(java.lang.String[] names)Returns all the header-lines without any of the given names.java.util.EnumerationMimePart. getNonMatchingHeaderLines(java.lang.String[] names)Returns all the header-lines without any of the given names.java.util.EnumerationMimeBodyPart. getNonMatchingHeaders(java.lang.String[] names)Returns all the headers without any of the given names.java.util.EnumerationMimeMessage. getNonMatchingHeaders(java.lang.String[] names)Returns all the headers without any of the given names.java.lang.StringMimeMultipart. getPreamble()Returns the preamble text (if any) before the first boundary line in this multipart's body.java.io.InputStreamMimeBodyPart. getRawInputStream()Returns the unencoded bytes of the content without applying any content transfer decoding.java.io.InputStreamMimeMessage. getRawInputStream()Returns the unencoded bytes of the content without applying any content transfer encoding.java.util.DateMimeMessage. getReceivedDate()Returns the date on which this message was received.Address[]MimeMessage. getRecipients(Message.RecipientType type)Returns the recipients of the given type.Address[]MimeMessage. getReplyTo()Returns the value of the RFC 822 Reply-To header field.AddressMimeMessage. getSender()Returns the value of the RFC 822 Sender header field.java.util.DateMimeMessage. getSentDate()Returns the value of the RFC 822 Date field.intMimeBodyPart. getSize()Returns the size of the content of this body part in bytes, or -1 if the size cannot be determined.intMimeMessage. getSize()Returns the size of the content of this message in bytes, or -1 if the size cannot be determined.java.lang.StringMimeMessage. getSubject()Returns the value of the Subject header field.booleanMimeMultipart. isComplete()Indicates whether the final boundary line for this multipart has been parsed.booleanMimeBodyPart. isMimeType(java.lang.String mimeType)Indicates whether this part is of the specified MIME type.booleanMimeMessage. isMimeType(java.lang.String mimeType)Indicates whether this message is of the specified MIME type.booleanMimeMessage. isSet(Flags.Flag flag)Indicates whether the specified flag is set in this message.voidInternetHeaders. load(java.io.InputStream is)Parses the specified RFC 822 message stream, storing the headers in this InternetHeaders.protected voidMimeMessage. parse(java.io.InputStream is)Parses the given input stream, setting the headers and content fields appropriately.protected voidMimeMultipart. parse()Parses the body parts from this multipart's data source.voidMimeBodyPart. removeHeader(java.lang.String name)Removes all headers with the specified name.voidMimeMessage. removeHeader(java.lang.String name)Removes all headers with the specified name.MessageMimeMessage. reply(boolean replyToAll)Returns a new message suitable for a reply to this message.voidMimeMessage. saveChanges()Saves any changes to this message.voidMimeBodyPart. saveFile(java.io.File file)Saves the content of this part to the specified file.voidMimeBodyPart. saveFile(java.lang.String file)Saves the content of this part to the specified file.voidMimeBodyPart. setContent(java.lang.Object o, java.lang.String type)Sets the content of this part using the specified Java object and MIME type.voidMimeBodyPart. setContent(Multipart mp)Sets the content of this part to be the specified multipart.voidMimeMessage. setContent(java.lang.Object o, java.lang.String type)Sets the content of this message using the specified Java object and MIME type.voidMimeMessage. setContent(Multipart mp)Sets the content of this message to be the specified multipart.voidMimeBodyPart. setContentID(java.lang.String cid)Sets the Content-ID header field of this part.voidMimeMessage. setContentID(java.lang.String cid)Sets the Content-ID header field of this message.voidMimeBodyPart. setContentLanguage(java.lang.String[] languages)Sets the Content-Language header of this part.voidMimeMessage. setContentLanguage(java.lang.String[] languages)Sets the Content-Language header of this message.voidMimePart. setContentLanguage(java.lang.String[] languages)Sets the Content-Language header of this part.voidMimeBodyPart. setContentMD5(java.lang.String md5)Sets the Content-MD5 header field of this part.voidMimeMessage. setContentMD5(java.lang.String md5)Sets the Content-MD5 header field of this message.voidMimePart. setContentMD5(java.lang.String md5)Sets the Content-MD5 header value for this part.voidMimeBodyPart. setDataHandler(javax.activation.DataHandler dh)Sets the content of this part using the specified data handler.voidMimeMessage. setDataHandler(javax.activation.DataHandler datahandler)Sets the content of this part using the specified data handler.voidMimeBodyPart. setDescription(java.lang.String description)Sets the Content-Description header field for this part.voidMimeBodyPart. setDescription(java.lang.String description, java.lang.String charset)Sets the Content-Description header field for this part.voidMimeMessage. setDescription(java.lang.String description)Sets the Content-Description header field for this message.voidMimeMessage. setDescription(java.lang.String description, java.lang.String charset)Sets the Content-Description header field for this message.voidMimeBodyPart. setDisposition(java.lang.String disposition)Sets the Content-Disposition header field of this part.voidMimeMessage. setDisposition(java.lang.String disposition)Sets the Content-Disposition header field of this message.voidMimeBodyPart. setFileName(java.lang.String filename)Sets the filename associated with this body part.voidMimeMessage. setFileName(java.lang.String filename)Sets the filename associated with this part.voidMimeMessage. setFlags(Flags flag, boolean set)Sets the flags for this message.voidMimeMessage. setFrom()Sets the RFC 822 From header field using the value of theInternetAddress.getLocalAddressmethod.voidMimeMessage. setFrom(Address address)Sets the RFC 822 From header field.voidMimeBodyPart. setHeader(java.lang.String name, java.lang.String value)Sets the specified header.voidMimeMessage. setHeader(java.lang.String name, java.lang.String value)Sets the specified header.voidMimeMultipart. setPreamble(java.lang.String preamble)Sets the preamble text to be emitted before the first boundary line.voidMimeMessage. setRecipients(Message.RecipientType type, java.lang.String addresses)Sets the recipients of the given type.voidMimeMessage. setRecipients(Message.RecipientType type, Address[] addresses)Sets the recipients of the given type.voidMimeMessage. setReplyTo(Address[] addresses)Sets the RFC 822 Reply-To header field.voidMimeMessage. setSender(Address address)Sets the RFC 822 Sender header field.voidMimeMessage. setSentDate(java.util.Date date)Sets the RFC 822 Date header field.voidMimeMessage. setSubject(java.lang.String subject)Sets the Subject header field.voidMimeMessage. setSubject(java.lang.String subject, java.lang.String charset)Sets the Subject header field.voidMimeMultipart. setSubType(java.lang.String subtype)Sets the subtype.voidMimeBodyPart. setText(java.lang.String text)Sets the content of this part using the specified text, and with a MIME type of "text/plain".voidMimeBodyPart. setText(java.lang.String text, java.lang.String charset)Sets the content of this part using the specified text, and with a MIME type of "text/plain".voidMimeBodyPart. setText(java.lang.String text, java.lang.String charset, java.lang.String subtype)Sets the content of this part using the specified text, and with a text MIME type of the specified subtype.voidMimeMessage. setText(java.lang.String text)Sets the content of this message using the specified text, and with a MIME type of "text/plain".voidMimeMessage. setText(java.lang.String text, java.lang.String charset)Sets the content of this message using the specified text, and with a MIME type of "text/plain".voidMimeMessage. setText(java.lang.String text, java.lang.String charset, java.lang.String subtype)Sets the content of this message using the specified text, and with a text MIME type of the specified subtype.voidMimePart. setText(java.lang.String text)Sets the content of this message using the specified text, and with a MIME type of "text/plain".voidMimePart. setText(java.lang.String text, java.lang.String charset)Sets the content of this message using the specified text, and with a MIME type of "text/plain".voidMimePart. setText(java.lang.String text, java.lang.String charset, java.lang.String subtype)Sets the content of this message using the specified text, and with a text MIME type of the specified subtype.protected voidMimeBodyPart. updateHeaders()Updates the headers of this part, based on the content.protected voidMimeMessage. updateHeaders()Updates the headers of this part, based on the content.protected voidMimeMultipart. updateHeaders()Updates the headers of this part to be consistent with its content.protected voidMimeMessage. updateMessageId()Updates the Message-ID header.voidMimeBodyPart. writeTo(java.io.OutputStream os)Writes this body part to the specified stream in RFC 822 format.voidMimeMessage. writeTo(java.io.OutputStream os)Writes this message to the specified stream in RFC 822 format.voidMimeMessage. writeTo(java.io.OutputStream os, java.lang.String[] ignoreList)Writes this message to the specified stream in RFC 822 format, without the specified headers.voidMimeMultipart. writeTo(java.io.OutputStream os)Writes this multipart to the specified output stream.Constructors in javax.mail.internet that throw MessagingException Constructor Description InternetHeaders(java.io.InputStream is)Constructor with an RFC 822 message stream.MimeBodyPart(java.io.InputStream is)Constructor with an input stream.MimeBodyPart(InternetHeaders headers, byte[] content)Constructor with headers and byte content.MimeMessage(Folder folder, java.io.InputStream is, int msgnum)Constructor with a parent folder, message number, and RFC 822 input stream.MimeMessage(Folder folder, InternetHeaders headers, byte[] content, int msgnum)Constructor with a parent folder, message number, headers and byte content.MimeMessage(MimeMessage source)Constructor with an existing message.MimeMessage(Session session, java.io.InputStream is)Constructor with an input stream contining an RFC 822 message.MimeMultipart(javax.activation.DataSource ds)Constructor with a given data source. -
Uses of MessagingException in javax.mail.search
Subclasses of MessagingException in javax.mail.search Modifier and Type Class Description classSearchExceptionAn exception thrown to indicate that a search expression could not be handled by the store implementation.
-