Uses of Class javax.mail.MessagingException

Uses in package javax.mail.internet

Classes derived from javax.mail.MessagingException

class
An exception thrown when an incorrectly formatted address is encountered.
class
An exception thrown to indicate an error parsing RFC822 or MIME headers.

Constructors which throw type javax.mail.MessagingException

Constructor with an RFC 822 message stream.
MimeBodyPart.MimeBodyPart(InputStream is)
Constructor with an input stream.
MimeBodyPart.MimeBodyPart(InternetHeaders headers, byte[] content)
Constructor with headers and byte content.
MimeMessage.MimeMessage(Folder folder, InputStream is, int msgnum)
Constructor with a parent folder, message number, and RFC 822 input stream.
MimeMessage.MimeMessage(Folder folder, InternetHeaders headers, byte[] content, int msgnum)
Constructor with a parent folder, message number, headers and byte content.
MimeMessage.MimeMessage(Session session, InputStream is)
Constructor with an input stream contining an RFC 822 message.
Constructor with an existing message.
Constructor with a given data source.

Methods which throw type javax.mail.MessagingException

void
Adds the specified addresses to From header field.
void
MimeBodyPart.addHeader(String name, String value)
Adds the specified header.
void
MimeMessage.addHeader(String name, String value)
Adds the specified header.
void
Adds an RFC 822 header-line to this part.
void
Adds an RFC 822 header-line to this message.
void
MimePart.addHeaderLine(String line)
Adds an RFC822 header-line.
void
Adds the given addresses to the recipients of the specified type.
void
Adds the given addresses to the recipients of the specified type.
void
Use the specified file as the content for this part.
void
MimeBodyPart.attachFile(String file)
Use the specified file as the content for this part.
InternetHeaders
Creates the headers from the given input stream.
InternetHeaders
Creates headers from the specified input stream.
MimeBodyPart
Creates a MIME body part from the specified input stream.
MimeBodyPart
Creates a MIME body part object from the given headers and byte content.
MimeMessage
Creates a new MIME message.
InputStream
MimeUtility.decode(InputStream is, String encoding)
Decodes the given input stream.
OutputStream
MimeUtility.encode(OutputStream os, String encoding)
Encodes the given output stream.
OutputStream
MimeUtility.encode(OutputStream os, String encoding, String filename)
Encodes the given output stream.
Enumeration
Returns all the header-lines.
Enumeration
Returns all the header-lines.
Enumeration
Returns all the header-lines.
Enumeration
Returns all the headers.
Enumeration
Returns all the headers.
Address[]
Returns all the recipients.
BodyPart
Returns the body part identified by the given Content-ID (CID).
BodyPart
Returns the specified body part.
Object
Returns this part's content as a Java object.
Object
Returns this message's content as a Java object.
String
Returns the value of the Content-ID header field.
String
Returns the value of the Content-ID header field.
String
Returns the value of the Content-ID header field of this part.
String[]
Returns the languages specified in the Content-Language header of this part, as defined by RFC 1766.
String[]
Returns the languages specified in the Content-Language header field of this message, as defined by RFC 1766.
String[]
Returns the languages specified in the Content-Language header of this part, as defined by RFC 1766.
String
Returns the value of the Content-MD5 header field.
String
Returns the value of the Content-MD5 header field.
String
Returns the value of the Content-MD5 header field of this part.
InputStream
Returns the unencoded bytes of the content.
InputStream
Returns the unencoded bytes of the content.
String
Returns the value of the RFC 822 Content-Type header field, or "text/plain" if the header is not available.
String
Returns the value of the RFC 822 Content-Type header field, or "text/plain" if the header is not available.
int
Returns the number of component body parts.
DataHandler
Returns a data handler for accessing this part's content.
DataHandler
Returns a data handler for accessing this message's content.
String
Returns the Content-Description header field of this part.
String
Returns the Content-Description header field of this message.
String
Returns the value of the RFC 822 Content-Disposition header field, or null if the header is not available.
String
Returns the value of the RFC 822 Content-Disposition header field, or null if the header is not available.
String
Returns the value of the Content-Transfer-Encoding header field.
String
Returns the value of the Content-Transfer-Encoding header field.
String
Returns the value of the Content-Transfer-Encoding header field of this part.
String
Returns the filename associated with this body part.
String
Returns the filename associated with this message.
Flags
Returns the flags for this message.
Address[]
Returns the value of the RFC 822 From header field.
String[]
MimeBodyPart.getHeader(String name)
Returns all the values for the specified header name.
String[]
MimeMessage.getHeader(String name)
Returns all the values for the specified header name.
String
MimeBodyPart.getHeader(String name, String delimiter)
Returns all the values for the specified header name as a single string, with headers separated by the given delimiter.
String
MimeMessage.getHeader(String name, String delimiter)
Returns all the values for the specified header name as a single string, with headers separated by the given delimiter.
String
MimePart.getHeader(String header_name, 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.
InputStream
Returns a decoded input stream for this part's content.
InputStream
Returns a decoded input stream for this message's content.
int
Returns the number of lines in the content of this body part, or -1 if this number cannot be determined.
int
Returns the number of lines in the content of this message, or -1 if this number cannot be determined.
Enumeration
Returns all the header-lines with any of the given names.
Enumeration
Returns all the header-lines with any of the given names.
Enumeration
Returns all the header-lines with any of the given names.
Enumeration
Returns all the headers with any of the given names.
Enumeration
Returns all the headers with any of the given names.
String
Returns the value of the Message-ID header field.
Enumeration
Returns all the header-lines without any of the given names.
Enumeration
Returns all the header-lines without any of the given names.
Enumeration
Returns all the header-lines without any of the given names.
Enumeration
Returns all the headers without any of the given names.
Enumeration
Returns all the headers without any of the given names.
String
Returns the preamble text (if any) before the first boundary line in this multipart's body.
InputStream
Returns the unencoded bytes of the content without applying any content transfer decoding.
InputStream
Returns the unencoded bytes of the content without applying any content transfer encoding.
Date
Returns the date on which this message was received.
Address[]
Returns the recipients of the given type.
Address[]
Returns the value of the RFC 822 Reply-To header field.
Address
Returns the value of the RFC 822 Sender header field.
Date
Returns the value of the RFC 822 Date field.
int
Returns the size of the content of this body part in bytes, or -1 if the size cannot be determined.
int
Returns the size of the content of this message in bytes, or -1 if the size cannot be determined.
String
Returns the value of the Subject header field.
boolean
Indicates whether the final boundary line for this multipart has been parsed.
boolean
MimeBodyPart.isMimeType(String mimeType)
Indicates whether this part is of the specified MIME type.
boolean
MimeMessage.isMimeType(String mimeType)
Indicates whether this message is of the specified MIME type.
boolean
Indicates whether the specified flag is set in this message.
void
InternetHeaders.load(InputStream is)
Parses the specified RFC 822 message stream, storing the headers in this InternetHeaders.
void
Parses the body parts from this multipart's data source.
void
MimeMessage.parse(InputStream is)
Parses the given input stream, setting the headers and content fields appropriately.
void
Removes all headers with the specified name.
void
Removes all headers with the specified name.
Message
MimeMessage.reply(boolean replyToAll)
Returns a new message suitable for a reply to this message.
void
Saves any changes to this message.
void
Saves the content of this part to the specified file.
void
MimeBodyPart.saveFile(String file)
Saves the content of this part to the specified file.
void
MimeBodyPart.setContent(Object o, String type)
Sets the content of this part using the specified Java object and MIME type.
void
MimeMessage.setContent(Object o, String type)
Sets the content of this message using the specified Java object and MIME type.
void
Sets the content of this part to be the specified multipart.
void
Sets the content of this message to be the specified multipart.
void
Sets the Content-ID header field of this part.
void
Sets the Content-ID header field of this message.
void
MimeBodyPart.setContentLanguage(String[] languages)
Sets the Content-Language header of this part.
void
MimeMessage.setContentLanguage(String[] languages)
Sets the Content-Language header of this message.
void
MimePart.setContentLanguage(String[] languages)
Sets the Content-Language header of this part.
void
Sets the Content-MD5 header field of this part.
void
Sets the Content-MD5 header field of this message.
void
MimePart.setContentMD5(String md5)
Sets the Content-MD5 header value for this part.
void
MimeBodyPart.setDataHandler(DataHandler dh)
Sets the content of this part using the specified data handler.
void
MimeMessage.setDataHandler(DataHandler datahandler)
Sets the content of this part using the specified data handler.
void
MimeBodyPart.setDescription(String description)
Sets the Content-Description header field for this part.
void
MimeMessage.setDescription(String description)
Sets the Content-Description header field for this message.
void
MimeBodyPart.setDescription(String description, String charset)
Sets the Content-Description header field for this part.
void
MimeMessage.setDescription(String description, String charset)
Sets the Content-Description header field for this message.
void
MimeBodyPart.setDisposition(String disposition)
Sets the Content-Disposition header field of this part.
void
MimeMessage.setDisposition(String disposition)
Sets the Content-Disposition header field of this message.
void
MimeBodyPart.setFileName(String filename)
Sets the filename associated with this body part.
void
MimeMessage.setFileName(String filename)
Sets the filename associated with this part.
void
MimeMessage.setFlags(Flags flag, boolean set)
Sets the flags for this message.
void
Sets the RFC 822 From header field using the value of the InternetAddress.getLocalAddress method.
void
Sets the RFC 822 From header field.
void
MimeBodyPart.setHeader(String name, String value)
Sets the specified header.
void
MimeMessage.setHeader(String name, String value)
Sets the specified header.
void
MimeMultipart.setPreamble(String preamble)
Sets the preamble text to be emitted before the first boundary line.
void
Sets the recipients of the given type.
void
Sets the recipients of the given type.
void
Sets the RFC 822 Reply-To header field.
void
Sets the RFC 822 Sender header field.
void
Sets the RFC 822 Date header field.
void
MimeMultipart.setSubType(String subtype)
Sets the subtype.
void
MimeMessage.setSubject(String subject)
Sets the Subject header field.
void
MimeMessage.setSubject(String subject, String charset)
Sets the Subject header field.
void
MimeBodyPart.setText(String text)
Sets the content of this part using the specified text, and with a MIME type of "text/plain".
void
MimeMessage.setText(String text)
Sets the content of this message using the specified text, and with a MIME type of "text/plain".
void
MimePart.setText(String text)
Sets the content of this message using the specified text, and with a MIME type of "text/plain".
void
MimeBodyPart.setText(String text, String charset)
Sets the content of this part using the specified text, and with a MIME type of "text/plain".
void
MimeMessage.setText(String text, String charset)
Sets the content of this message using the specified text, and with a MIME type of "text/plain".
void
MimePart.setText(String text, String charset)
Sets the content of this message using the specified text, and with a MIME type of "text/plain".
void
MimeBodyPart.setText(String text, String charset, String subtype)
Sets the content of this part using the specified text, and with a text MIME type of the specified subtype.
void
MimeMessage.setText(String text, String charset, String subtype)
Sets the content of this message using the specified text, and with a text MIME type of the specified subtype.
void
MimePart.setText(String text, String charset, String subtype)
Sets the content of this message using the specified text, and with a text MIME type of the specified subtype.
void
Updates the headers of this part, based on the content.
void
Updates the headers of this part, based on the content.
void
Updates the headers of this part to be consistent with its content.
void
Updates the Message-ID header.
void
MimeBodyPart.writeTo(OutputStream os)
Writes this body part to the specified stream in RFC 822 format.
void
MimeMessage.writeTo(OutputStream os)
Writes this message to the specified stream in RFC 822 format.
void
MimeMultipart.writeTo(OutputStream os)
Writes this multipart to the specified output stream.
void
MimeMessage.writeTo(OutputStream os, String[] ignoreList)
Writes this message to the specified stream in RFC 822 format, without the specified headers.

Uses in package javax.mail

Classes derived from javax.mail.MessagingException

class
An exception thrown to indicate that authentication failed during a service's connect method.
class
An exception thrown when a method is invoked on a closed folder or one of its messages.
class
An exception thrown when a method is invoked on a nonexistent folder.
class
An exception thrown when a modification of a read-only property is attempted.
class
An exception thrown when an invalid method is invoked on an expunged message.
class
An exception thrown when an operation is not supported by the implementation.
class
An exception thrown on an attempt to instantiate a provider that doesn't exist.
class
An exception thrown when an attempt is made to open a folder in read-write mode when the folder can only be opened read-only.
class
An exception thrown when a message cannot be sent.
class
An exception thrown when a method is invoked on a message or folder whose owner store has been closed for some reason.

Methods which throw type javax.mail.MessagingException

void
Adds a body part to this multipart.
void
Multipart.addBodyPart(BodyPart part, int index)
Inserts a body part at the specified index.
void
Message.addFrom(Address[] addresses)
Adds addresses to the identity of the person sending this message.
void
Part.addHeader(String name, String value)
Adds the specified value to the existing values for this header name.
void
Adds the recipient address of the given type.
void
Adds the recipient addresses of the given type.
void
Appends the specified messages to this folder.
void
Closes this service, terminating any underlying connections.
void
Folder.close(boolean expunge)
Closes this folder.
void
Connects to this service.
void
Service.connect(String user, String password)
Connects to this service.
void
Service.connect(String host, String user, String password)
Connects to this service using the specified details.
void
Service.connect(String host, int port, String user, String password)
Connects to this service using the specified details.
void
Folder.copyMessages(Message[] msgs, Folder folder)
Copies the specified messages into another folder.
boolean
Folder.create(int type)
Create this folder in the store.
boolean
Folder.delete(boolean recurse)
Deletes this folder.
boolean
Indicates whether this folder exists in the Store.
Message[]
Expunges (permanently removing) all the messages marked DELETED.
void
Fetches the items specified in the given fetch profile for the specified messages.
Enumeration
Returns all the headers from this part.
Address[]
Returns all the recipient addresses in the message.
BodyPart
Get the specified body part.
BodyPart
Returns the specified body part.
Object
Returns the content of this part as a Java object.
String
Returns the content-type of the content of this part, or null if the content-type could not be determined.
int
Returns the number of enclosed body parts.
DataHandler
Returns a data handler for the content of this part.
Folder
Returns a folder that represents the root of the primary namespace presented to the user by this store.
int
Returns the number of deleted messages in this folder.
String
Returns the description of this part.
String
Returns the disposition of this part.
String
Returns the filename associated with this part, if available.
Flags
Returns the flags for this message.
Folder
Folder.getFolder(String name)
Return a folder corresponding to the given name.
Folder
Store.getFolder(String name)
Returns the folder with the given name.
Folder
Get a closed Folder object for the given URLName.
Folder
Returns the folder corresponding to the given URLName.
Address[]
Returns the identity of the person(s) who ordered the sending of this message.
String[]
Part.getHeader(String name)
Returns all the values for the specified header name, or null if no such headers are available.
InputStream
Returns an input stream for reading the content of this part.
int
Returns the number of lines in the content of this part, or -1 if the number cannot be determined.
Enumeration
Part.getMatchingHeaders(String[] names)
Returns the matching headers from this part.
Message
Folder.getMessage(int msgnum)
Returns the message with the given number.
Message
Returns the message corresponding to the given UID, or null if no such message exists.
int
Returns the number of messages in this folder.
Message[]
Returns all messages in this folder.
Message[]
Folder.getMessages(int start, int end)
Returns the messages in the given range (inclusive).
Message[]
Folder.getMessages(msgnums[] )
Returns the messages for the specified message numbers.
Message[]
UIDFolder.getMessagesByUID(long start, long end)
Returns the messages in the given range.
Message[]
Returns the messages specified by the given UIDs.
int
Returns the number of new messages in this folder.
Enumeration
Part.getNonMatchingHeaders(String[] names)
Returns the non-matching headers from this part.
Folder
Returns the parent folder of this folder, or null if this folder is the root of a folder hierarchy.
Folder[]
Returns the personal namespaces for the authenticated user.
Quota[]
Returns the quotas for the given quota root.
Date
Returns the date this message was received.
Address[]
Returns all the recipient addresses of the specified type.
Address[]
Returns the addresses to which replies should be directed.
Date
Returns the date this message was sent.
char
Return the hierarchy delimiter character for this folder.
Folder[]
Returns the shared namespaces.
int
Returns the size of the content of this part in bytes, or -1 if the size cannot be determined.
String
Returns the subject of this message.
int
Returns the type of this Folder, i.e.
long
Returns the UID for the specified message.
long
Returns the UIDValidity value associated with this folder.
URLName
Return a URLName that can be used as a handle to access this folder.
int
Returns the number of unread messages in this folder.
Folder[]
Store.getUserNamespaces(String user)
Returns the personal namespaces for the specified user.
boolean
Indicates whether this folder has new messages.
boolean
Part.isMimeType(String mimeType)
Is this part of the specified MIME type? This method compares only the primary type and subtype.
boolean
Indicates whether the specified flag is set in this message.
Folder[]
Returns the list of subfolders of this folder.
Folder[]
Folder.list(String pattern)
Returns a list of subfolders matching the specified pattern.
Folder[]
Returns the list of subscribed subfolders of this folder.
Folder[]
Folder.listSubscribed(String pattern)
Returns a list of subscribed subfolders matching the specified pattern.
boolean
Indicates whether the specified search term applies to this message.
void
Folder.open(int mode)
Opens this folder.
boolean
Service.protocolConnect(String host, int port, String user, String password)
Provider implementation for a service.
void
Removes the body part at the specified index.
boolean
Removes the specified body part from this multipart.
void
Part.removeHeader(String name)
Removes all headers of the specified name.
boolean
Renames this folder.
Message
Message.reply(boolean replyToAll)
Returns a new message suitable for a reply to this message.
void
Save any changes made to this message into its underlying store, if the message was obtained from a folder.
Message[]
Searches this folder for messages matching the specified search term.
Message[]
Searches the given messages for those matching the specified search term.
void
Sends the specified message.
void
Transport.send(Message msg, Address[] addresses)
Sends the message to the specified addresses, ignoring any recipients specified in the message itself.
void
Transport.sendMessage(Message msg, Address[] addresses)
Sends the message to the specified list of addresses.
void
Part.setContent(Object obj, String type)
Sets the content of this part using the specified object.
void
Sets the multipart content of this part.
void
Part.setDataHandler(DataHandler dh)
Sets the content of this part using the specified data handler.
void
Part.setDescription(String description)
Sets the description of this part.
void
Part.setDisposition(String disposition)
Sets the disposition of this part.
void
Part.setFileName(String filename)
Sets the filename associated with this part.
void
Message.setFlag(Flags.Flag flag, boolean set)
Sets the specified flag on this message to the given value.
void
Folder.setFlags(int start, int end, Flags flag, boolean value)
Set the specified flags on the given range of messages (inclusive).
void
Folder.setFlags(int[] msgnums, Flags flag, boolean value)
Sets the specified flags on each of the specified messages.
void
Message.setFlags(Flags flag, boolean set)
Sets the specified flags on this message to the given value.
void
Folder.setFlags(Message[] msgs, Flags flag, boolean value)
Sets the specified flags on each specified message.
void
Sets the identity of the person sending this message, as obtained from the property "mail.user".
void
Sets the identity of the person sending this message.
void
Part.setHeader(String name, String value)
Sets the value for the specified header name.
void
Configures this multipart from the given data source.
void
Sets the quotas for the quota root specified in the quota argument.
void
Sets the recipient address of the specified type.
void
Sets the recipient addresses of the specified type.
void
Message.setReplyTo(Address[] addresses)
Sets the addresses to which replies should be directed.
void
Message.setSentDate(Date date)
Sets the date this message was sent.
void
Message.setSubject(String subject)
Sets the subject of this message.
void
Folder.setSubscribed(boolean flag)
Subscribe to or unsubscribe from this folder.
void
Part.setText(String text)
Sets the textual content of this part, using a MIME type of text/plain.
void
Multipart.writeTo(OutputStream os)
Writes this multipart to the specified byte stream.
void
Part.writeTo(OutputStream os)
Writes this part to the specified byte stream.

Uses in package gnu.mail.providers.pop3

Methods which throw type javax.mail.MessagingException

void
You can't append messages to a POP3 folder.
void
Closes the connection.
void
POP3Folder.close(boolean expunge)
Closes this folder.
boolean
POP3 folders can't be created, deleted, or renamed.
boolean
POP3Folder.delete(boolean flag)
POP3 folders can't be created, deleted, or renamed.
boolean
Indicates whether this folder exists.
Message[]
Expunges this folder.
void
Fetches headers and/or content for the specified messages.
Enumeration
Causes the headers to be read.
Enumeration
Causes the headers to be read.
InputStream
Causes the content to be read in.
DataHandler
Causes the content to be read in.
Folder
Returns the root folder.
Folder
POP3 folders can't contain subfolders.
Folder
POP3Store.getFolder(String s)
Returns the folder with the specified name.
Folder
Returns the folder whose name is the file part of the specified URLName.
String[]
POP3Message.getHeader(String name)
Causes the headers to be read.
String
POP3Message.getHeader(String name, String delimiter)
Causes the headers to be read.
Enumeration
Causes the headers to be read.
Enumeration
Causes the headers to be read.
Message
POP3Folder.getMessage(int msgnum)
Returns the specified message from this folder.
int
Returns the number of messages in this folder.
Enumeration
Causes the headers to be read.
Enumeration
Causes the headers to be read.
Folder
POP3 folders can't have parents.
char
Returns the path separator charcter.
int
Gets the size of the message.
TrustManager
Returns a trust manager used for TLS negotiation.
int
Returns the type of this folder.
String
Returns the unique ID for this message.
String
Returns the unique ID for the given message, or null if not available.
boolean
Indicates whether this folder contains new messages.
Folder[]
Returns the subfolders for this folder.
Folder[]
POP3Folder.list(String pattern)
Returns the subfolders for this folder.
void
POP3Folder.open(int mode)
Opens this folder.
boolean
POP3Store.protocolConnect(String host, int port, String username, String password)
Connects to the POP3 server and authenticates with the specified parameters.
boolean
POP3 folders can't be created, deleted, or renamed.
void
POP3Message.setFlags(Flags flags, boolean set)
Set flags (but only DELETED is supported) add or remove the message from the folder deleted message list.
void
POP3Message.writeTo(OutputStream msgStream)
Writes this message to the specified stream in RFC 822 format.
void
POP3Message.writeTo(OutputStream msgStream, String[] ignoreList)
Writes this message to the specified stream in RFC 822 format, without the specified headers.

Uses in package gnu.mail.providers.nntp

Methods which throw type javax.mail.MessagingException

void
NNTP servers are read-only.
void
Appends the specified messages to this folder.
void
Close the connection.
void
Close the connection.
void
NNTPFolder.close(boolean expunge)
This method has no particular meaning in NNTP.
void
NNTPRootFolder.close(boolean expunge)
Closes this folder.
boolean
NNTPFolder.create(int type)
NNTP servers are read-only.
boolean
Create this folder in the store.
boolean
NNTPFolder.delete(boolean recurse)
NNTP servers are read-only.
boolean
NNTPRootFolder.delete(boolean flag)
Deletes this folder.
boolean
Indicates whether the newsgroup is present on the server.
boolean
Indicates whether this folder exists in the Store.
Message[]
NNTP servers are read-only.
Message[]
Expunges (permanently removing) all the messages marked DELETED.
void
Prefetch.
Enumeration
Enumeration
InputStream
Folder
Returns the folder representing the "root" namespace.
Folder
NNTPFolder.getFolder(String name)
This folder type does not contain other folders.
Folder
Returns a new Folder object associated with the specified name.
Folder
NNTPStore.getFolder(String name)
Returns a folder by name.
Folder
Returns the folder whose name corresponds to the file part of the specified URL.
String[]
NNTPMessage.getHeader(String name)
String
NNTPMessage.getHeader(String name, String delimiter)
int
Enumeration
Enumeration
Message
NNTPFolder.getMessage(int msgnum)
Returns the article corresponding to the specified article number.
Message
Returns the message with the given number.
int
Returns the number of articles in this newsgroup.
int
Returns the number of messages in this folder.
Message[]
Returns all articles in this group.
Enumeration
Enumeration
Folder
This implementation uses a flat namespace, so the parent of any NNTPFolder is the NNTP root folder.
Folder
Returns the parent folder of this folder, or null if this folder is the root of a folder hierarchy.
char
If we move away from a flat namespace, this might be useful.
char
As we're dealing with a flat namespace, the value of this is irrelevant.
int
int
Returns the type of this folder.
boolean
Indicates whether there are new articles in this newsgroup.
boolean
Indicates whether this folder has new messages.
Folder[]
NNTPFolder.list(String pattern)
This folder type does not contain other folders.
Folder[]
NNTPRootFolder.list(String pattern)
Returns the list of folders matching the specified pattern.
Folder[]
NNTPRootFolder.list(String pattern, ListFolderListener listener)
Returns the list of folders matching the specified pattern.
Folder[]
Returns the list of folders matching the specified pattern.
Folder[]
NNTPFolder.listSubscribed(String pattern)
This folder type does not contain other folders.
Folder[]
Returns the list of subscribed folders matching the specified pattern.
void
NNTPFolder.open(int mode)
This method has no particular meaning in NNTP.
void
NNTPRootFolder.open(int mode)
Opens this folder.
boolean
NNTPStore.protocolConnect(String host, int port, String username, String password)
Performs the protocol connection.
boolean
NNTPTransport.protocolConnect(String host, int port, String username, String password)
Performs the protocol connection.
boolean
NNTP servers are read-only.
boolean
Renames this folder.
void
void
NNTPTransport.sendMessage(Message message, Address[] addresses)
Post an article.
void
NNTPMessage.setFlags(Flags flag, boolean set)
void
NNTPFolder.setSubscribed(boolean flag)
Subscribes or unsubscribes to this newsgroup.
void
This folder is always "subscribed".

Uses in package gnu.mail.providers.smtp

Methods which throw type javax.mail.MessagingException

void
Close this transport.
String
Returns the greeting banner.
boolean
SMTPTransport.protocolConnect(String host, int port, String username, String password)
Connects to the SMTP server.
void
SMTPTransport.sendMessage(Message message, Address[] addresses)
Send the specified message to the server.

Uses in package gnu.mail.providers.mbox

Constructors which throw type javax.mail.MessagingException

MboxMessage.MboxMessage(MboxFolder folder, String fromLine, InputStream in, int msgnum)
Creates a Mbox message.
MboxMessage.MboxMessage(MboxFolder folder, MimeMessage message, int msgnum)
Creates a Mbox message.

Methods which throw type javax.mail.MessagingException

void
Appends messages to this folder.
void
MboxFolder.close(boolean expunge)
Closes this folder.
boolean
MboxFolder.create(int type)
Creates this folder in the store.
boolean
MboxFolder.delete(boolean recurse)
Deletes this folder.
boolean
Indicates whether this folder exists.
Message[]
Expunges this folder.
String
Returns the From_ line for the specified mbox message.
Folder
Returns the default folder.
Folder
MboxFolder.getFolder(String name)
Returns the subfolder of this folder with the specified name.
Folder
MboxStore.getFolder(String name)
Returns the folder with the specified filename.
Folder
Returns the folder specified by the filename of the URLName.
Message
MboxFolder.getMessage(int msgnum)
Returns the specified message number from this folder.
int
Returns the number of messages in this folder.
Message[]
Returns the messages in this folder.
Folder
Returns the parent folder.
char
Returns the separator character.
int
Returns the type of this folder.
URLName
Return a URLName representing this folder.
boolean
Indicates whether this folder contains new messages.
Folder[]
Returns the subfolders of this folder.
Folder[]
MboxFolder.list(String pattern)
Returns the subfolders of this folder matching the specified pattern.
void
MboxFolder.open(int mode)
Opens this folder.
boolean
MboxStore.protocolConnect(String host, int port, String username, String password)
There isn't a protocol to implement, so this method just returns.
boolean
Renames this folder.
void
MboxMessage.setFlags(Flags flag, boolean set)
Set the specified flags(reflected in the Status header).
void
Updates the status header from the current flags.

Uses in package javax.mail.search

Classes derived from javax.mail.MessagingException

class
An exception thrown to indicate that a search expression could not be handled by the store implementation.

Uses in package gnu.mail.providers.maildir

Methods which throw type javax.mail.MessagingException

void
Appends messages to this folder.
void
MaildirFolder.close(boolean expunge)
Closes this folder.
boolean
Creates this folder in the store.
boolean
MaildirFolder.delete(boolean recurse)
Deletes this folder.
boolean
Indicates whether this folder exists.
Message[]
Expunges this folder.
Enumeration
Enumeration
Returns all the headers from this part.
InputStream
DataHandler
Returns a data handler for the content of this part.
Folder
Returns the default folder.
Folder
MaildirFolder.getFolder(String filename)
Returns the subfolder of this folder with the specified name.
Folder
MaildirStore.getFolder(String filename)
Returns the folder with the specified filename.
Folder
Returns the folder specified by the filename of the URLName.
String[]
Returns all the values for the specified header name, or null if no such headers are available.
String
MaildirMessage.getHeader(String name, String delimiter)
Enumeration
Enumeration
Returns the matching headers from this part.
Message
Returns the specified message number from this folder.
int
Returns the number of messages in this folder.
Message[]
Returns the messages in this folder.
int
Returns the number of new messages in this folder.
Enumeration
Enumeration
Returns the non-matching headers from this part.
Folder
Returns the parent folder.
char
Returns the separator character.
int
Returns the type of this folder.
URLName
Return a URLName representing this folder.
boolean
Indicates whether this folder contains new messages.
Folder[]
Returns the subfolders of this folder.
Folder[]
MaildirFolder.list(String pattern)
Returns the subfolders of this folder matching the specified pattern.
void
MaildirFolder.open(int mode)
Opens this folder.
boolean
MaildirStore.protocolConnect(String host, int port, String username, String password)
There isn't a protocol to implement, so this method just returns.
boolean
Renames this folder.
void
MaildirMessage.setFlags(Flags flag, boolean set)
Set the specified flags(reflected in the info field).

Uses in package gnu.mail.providers.imap

Constructors which throw type javax.mail.MessagingException

IMAPBodyPart.IMAPBodyPart(IMAPMessage message, IMAPMultipart parent, String section, InternetHeaders headers, int size, int lines)
Called by the IMAPMessage.

Methods which throw type javax.mail.MessagingException

void
Adds the specified access control entry to this folder.
void
Adds the rights for the specified access control entry.
void
Appends the specified set of messages to this folder.
void
Closes the connection.
void
IMAPFolder.close(boolean expunge)
Closes this folder.
boolean
IMAPFolder.create(int type)
Create this folder.
boolean
IMAPFolder.delete(boolean flag)
Delete this folder.
boolean
Indicates whether this folder exists.
Message[]
Expunges this folder.
void
IMAP fetch routine.
ACL[]
Returns the access control list for this folder.
Enumeration
Returns all the header-lines.
Enumeration
Returns all the headers.
BodyPart
Returns the secified sub-part of the multipart.
Object
Object
Returns this message's content as a Java object.
InputStream
Returns the raw content stream.
InputStream
Returns the raw content stream.
DataHandler
Returns a data handler for this part's content.
DataHandler
Returns a data handler for this message's content.
Folder
Returns the root folder.
int
Returns the number of deleted messages in this folder.
Flags
Returns the flags for this message.
Folder
IMAPFolder.getFolder(String name)
Returns a subfolder with the specified name.
Folder
IMAPStore.getFolder(String name)
Returns the folder with the specified name.
Folder
Returns the folder whose name is the file part of the specified URLName.
String[]
IMAPMessage.getHeader(String name)
Returns the specified header field.
String
IMAPMessage.getHeader(String name, String delimiter)
Returns the specified header field.
int
Returns the number of text lines in the content of this body part.
Enumeration
Returns all the header-lines with any of the given names.
Enumeration
Returns all the headers with any of the given names.
Message
IMAPFolder.getMessage(int msgnum)
Returns the specified message number from this folder.
Message
Returns the message corresponding to the given UID, or null if no such message exists.
int
Returns the number of messages in this folder.
int
Convenience method for returning the number of messages in the current folder that match the single criteria.
Message[]
IMAPFolder.getMessagesByUID(long start, long end)
Returns the messages in the given range.
Message[]
Returns the messages specified by the given UIDs.
int
Returns the number of new messages in this folder.
Enumeration
Returns all the header-lines without any of the given names.
Enumeration
Returns all the headers without any of the given names.
Folder
Returns the parent folder of this folder.
Folder[]
Returns a list of folders representing personal namespaces.
Quota[]
Returns the quotas for this folder.
Quota
IMAPStore.getQuota(String root)
Returns the quota for the specified quota root.
Date
Returns the date on which this message was received.
char
Returns the path separator charcter.
Folder[]
Returns a list of folders representing shared namespaces.
int
Returns the content size of this body part in bytes.
TrustManager
Returns a trust manager used for TLS negotiation.
int
Returns the type of this folder.
long
Returns the UID for the specified message.
long
Returns the UIDValidity value associated with this folder.
int
Returns the number of unread messages in this folder.
Folder[]
Returns a list of folders representing other users' namespaces.
boolean
Indicates whether this folder contains new messages.
boolean
Indicates whether the specified flag is set in this message.
Folder[]
IMAPFolder.list(String pattern)
Returns the subfolders for this folder.
Rights
IMAPFolder.listRights(String name)
Returns the rights currently assigned to the given principal.
Folder[]
IMAPFolder.listSubscribed(String pattern)
Returns the subscribed subfolders for this folder.
Rights
Returns the rights assigned to the currently authenticated principal.
void
IMAPFolder.open(int mode)
Opens this folder.
boolean
IMAPStore.protocolConnect(String host, int port, String username, String password)
Connects to the IMAP server and authenticates with the specified parameters.
void
IMAPFolder.removeACL(String name)
Removes the ACL for the given principal.
void
Removes the rights specified in the given access control entry from the principal.
boolean
Rename this folder.
Message[]
IMAP search function.
Message[]
IMAP search function.
void
IMAPMessage.setFlags(Flags flag, boolean set)
Set the specified flags.
void
IMAPStore.setQuota(String root, Quota.Resource[] resources)
Sets the quota resource set for the specified quota root.
void
IMAPFolder.setSubscribed(boolean flag)
Subscribe to or unsubscribe from this folder.
void
IMAPMessage.writeTo(OutputStream msgStream)
Writes this message to the specified stream in RFC 822 format.
void
IMAPMessage.writeTo(OutputStream msgStream, String[] ignoreList)
Writes this message to the specified stream in RFC 822 format, without the specified headers.

© Copyright 2003, 2004 The Free Software Foundation, All rights reserved