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 UNIX
mbox mailbox 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.
|
Modifier and Type | Method and Description |
---|---|
void |
IMAPFolder.addACL(ACL ace)
Deprecated.
this API will probably change incompatibly soon
|
void |
IMAPFolder.addRights(ACL ace)
Deprecated.
this API will probably change incompatibly soon
|
void |
IMAPFolder.appendMessages(Message[] messages)
Appends the specified set of messages to this folder.
|
void |
IMAPStore.close()
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 |
IMAPFolder.exists()
Indicates whether this folder exists.
|
Message[] |
IMAPFolder.expunge()
Expunges this folder.
|
void |
IMAPFolder.fetch(Message[] messages,
FetchProfile fp)
IMAP fetch routine.
|
ACL[] |
IMAPFolder.getACL()
Deprecated.
this API will probably change incompatibly soon
|
Enumeration |
IMAPMessage.getAllHeaderLines() |
Enumeration |
IMAPMessage.getAllHeaders() |
BodyPart |
IMAPMultipartDataSource.getBodyPart(int index)
Returns the secified sub-part of the multipart.
|
Object |
IMAPMessage.getContent() |
Object |
IMAPBodyPart.getContent() |
protected InputStream |
IMAPMessage.getContentStream()
Returns the raw content stream.
|
protected InputStream |
IMAPBodyPart.getContentStream()
Returns the raw content stream.
|
DataHandler |
IMAPMessage.getDataHandler()
Returns a data handler for this message's content.
|
DataHandler |
IMAPBodyPart.getDataHandler()
Returns a data handler for this part's content.
|
Folder |
IMAPStore.getDefaultFolder()
Returns the root folder.
|
int |
IMAPFolder.getDeletedMessageCount()
Returns the number of deleted messages in this folder.
|
Flags |
IMAPMessage.getFlags() |
Folder |
IMAPStore.getFolder(String name)
Returns the folder with the specified name.
|
Folder |
IMAPFolder.getFolder(String name)
Returns a subfolder with the specified name.
|
Folder |
IMAPStore.getFolder(URLName urlname)
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 |
IMAPBodyPart.getLineCount()
Returns the number of text lines in the content of this body part.
|
Enumeration |
IMAPMessage.getMatchingHeaderLines(String[] names) |
Enumeration |
IMAPMessage.getMatchingHeaders(String[] names) |
Message |
IMAPFolder.getMessage(int msgnum)
Returns the specified message number from this folder.
|
Message |
IMAPFolder.getMessageByUID(long uid) |
int |
IMAPFolder.getMessageCount()
Returns the number of messages in this folder.
|
int |
IMAPFolder.getMessageCountByCriteria(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) |
int |
IMAPFolder.getNewMessageCount()
Returns the number of new messages in this folder.
|
Enumeration |
IMAPMessage.getNonMatchingHeaderLines(String[] names) |
Enumeration |
IMAPMessage.getNonMatchingHeaders(String[] names) |
Folder |
IMAPFolder.getParent()
Returns the parent folder of this folder.
|
Folder[] |
IMAPStore.getPersonalNamespaces()
Returns a list of folders representing personal namespaces.
|
Quota[] |
IMAPFolder.getQuota()
Returns the quotas for this folder.
|
Quota |
IMAPStore.getQuota(String root)
Returns the quota for the specified quota root.
|
Date |
IMAPMessage.getReceivedDate()
Returns the date on which this message was received.
|
char |
IMAPFolder.getSeparator()
Returns the path separator charcter.
|
Folder[] |
IMAPStore.getSharedNamespaces()
Returns a list of folders representing shared namespaces.
|
int |
IMAPBodyPart.getSize()
Returns the content size of this body part in bytes.
|
protected TrustManager |
IMAPStore.getTrustManager()
Returns a trust manager used for TLS negotiation.
|
int |
IMAPFolder.getType()
Returns the type of this folder.
|
long |
IMAPFolder.getUID(Message message) |
long |
IMAPFolder.getUIDValidity() |
int |
IMAPFolder.getUnreadMessageCount()
Returns the number of unread messages in this folder.
|
Folder[] |
IMAPStore.getUserNamespaces()
Returns a list of folders representing other users' namespaces.
|
boolean |
IMAPFolder.hasNewMessages()
Indicates whether this folder contains new messages.
|
boolean |
IMAPMessage.isSet(Flags.Flag flag) |
Folder[] |
IMAPFolder.list(String pattern)
Returns the subfolders for this folder.
|
Rights |
IMAPFolder.listRights(String name)
Deprecated.
this API will probably change incompatibly soon
|
Folder[] |
IMAPFolder.listSubscribed(String pattern)
Returns the subscribed subfolders for this folder.
|
Rights |
IMAPFolder.myRights()
Deprecated.
this API will probably change incompatibly soon
|
void |
IMAPFolder.open(int mode)
Opens this folder.
|
protected 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)
Deprecated.
this API will probably change incompatibly soon
|
void |
IMAPFolder.removeRights(ACL ace)
Deprecated.
this API will probably change incompatibly soon
|
boolean |
IMAPFolder.renameTo(Folder folder)
Rename this folder.
|
Message[] |
IMAPFolder.search(SearchTerm term)
IMAP search function.
|
Message[] |
IMAPFolder.search(SearchTerm term,
Message[] msgs)
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) |
void |
IMAPMessage.writeTo(OutputStream msgStream) |
void |
IMAPMessage.writeTo(OutputStream msgStream,
String[] ignoreList) |
Constructor and Description |
---|
IMAPBodyPart(IMAPMessage message,
IMAPMultipart parent,
String section,
InternetHeaders headers,
int size,
int lines)
Called by the IMAPMessage.
|
Modifier and Type | Method and Description |
---|---|
void |
MaildirFolder.appendMessages(Message[] m)
Appends messages to this folder.
|
void |
MaildirFolder.close(boolean expunge)
Closes this folder.
|
boolean |
MaildirFolder.create(int type)
Creates this folder in the store.
|
boolean |
MaildirFolder.delete(boolean recurse)
Deletes this folder.
|
boolean |
MaildirFolder.exists()
Indicates whether this folder exists.
|
Message[] |
MaildirFolder.expunge()
Expunges this folder.
|
Enumeration |
MaildirMessage.getAllHeaderLines() |
Enumeration |
MaildirMessage.getAllHeaders() |
protected InputStream |
MaildirMessage.getContentStream() |
DataHandler |
MaildirMessage.getDataHandler() |
Folder |
MaildirStore.getDefaultFolder()
Returns the default folder.
|
Folder |
MaildirStore.getFolder(String filename)
Returns the folder with the specified filename.
|
Folder |
MaildirFolder.getFolder(String filename)
Returns the subfolder of this folder with the specified name.
|
Folder |
MaildirStore.getFolder(URLName urlname)
Returns the folder specified by the filename of the URLName.
|
String[] |
MaildirMessage.getHeader(String name) |
String |
MaildirMessage.getHeader(String name,
String delimiter) |
Enumeration |
MaildirMessage.getMatchingHeaderLines(String[] names) |
Enumeration |
MaildirMessage.getMatchingHeaders(String[] names) |
Message |
MaildirFolder.getMessage(int msgnum)
Returns the specified message number from this folder.
|
int |
MaildirFolder.getMessageCount()
Returns the number of messages in this folder.
|
Message[] |
MaildirFolder.getMessages()
Returns the messages in this folder.
|
int |
MaildirFolder.getNewMessageCount()
Returns the number of new messages in this folder.
|
Enumeration |
MaildirMessage.getNonMatchingHeaderLines(String[] names) |
Enumeration |
MaildirMessage.getNonMatchingHeaders(String[] names) |
Folder |
MaildirFolder.getParent()
Returns the parent folder.
|
char |
MaildirFolder.getSeparator()
Returns the separator character.
|
int |
MaildirFolder.getType()
Returns the type of this folder.
|
URLName |
MaildirFolder.getURLName()
Return a URLName representing this folder.
|
boolean |
MaildirFolder.hasNewMessages()
Indicates whether this folder contains new messages.
|
Folder[] |
MaildirFolder.list()
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.
|
protected boolean |
MaildirStore.protocolConnect(String host,
int port,
String username,
String password)
There isn't a protocol to implement, so this method just returns.
|
boolean |
MaildirFolder.renameTo(Folder folder)
Renames this folder.
|
void |
MaildirMessage.setFlags(Flags flag,
boolean set)
Set the specified flags(reflected in the
info field). |
Modifier and Type | Method and Description |
---|---|
void |
MboxFolder.appendMessages(Message[] m)
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 |
MboxFolder.exists()
Indicates whether this folder exists.
|
Message[] |
MboxFolder.expunge()
Expunges this folder.
|
protected String |
MboxFolder.fromLine(MboxMessage message)
Returns the From_ line for the specified mbox message.
|
Folder |
MboxStore.getDefaultFolder()
Returns the default folder.
|
Folder |
MboxStore.getFolder(String name)
Returns the folder with the specified filename.
|
Folder |
MboxFolder.getFolder(String name)
Returns the subfolder of this folder with the specified name.
|
Folder |
MboxStore.getFolder(URLName urlname)
Returns the folder specified by the filename of the URLName.
|
Message |
MboxFolder.getMessage(int msgnum)
Returns the specified message number from this folder.
|
int |
MboxFolder.getMessageCount()
Returns the number of messages in this folder.
|
Message[] |
MboxFolder.getMessages()
Returns the messages in this folder.
|
Folder |
MboxFolder.getParent()
Returns the parent folder.
|
char |
MboxFolder.getSeparator()
Returns the separator character.
|
int |
MboxFolder.getType()
Returns the type of this folder.
|
URLName |
MboxFolder.getURLName()
Return a URLName representing this folder.
|
boolean |
MboxFolder.hasNewMessages()
Indicates whether this folder contains new messages.
|
Folder[] |
MboxFolder.list()
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.
|
protected boolean |
MboxStore.protocolConnect(String host,
int port,
String username,
String password)
There isn't a protocol to implement, so this method just returns.
|
boolean |
MboxFolder.renameTo(Folder folder)
Renames this folder.
|
void |
MboxMessage.setFlags(Flags flag,
boolean set)
Set the specified flags(reflected in the
Status header). |
protected void |
MboxMessage.updateHeaders()
Updates the status header from the current flags.
|
Constructor and Description |
---|
MboxMessage(MboxFolder folder,
MimeMessage message,
int msgnum)
Creates a Mbox message.
|
MboxMessage(MboxFolder folder,
String fromLine,
InputStream in,
int msgnum)
Creates a Mbox message.
|
Modifier and Type | Method and Description |
---|---|
void |
NNTPRootFolder.appendMessages(Message[] messages) |
void |
NNTPFolder.appendMessages(Message[] messages)
NNTP servers are read-only.
|
void |
NNTPTransport.close()
Close the connection.
|
void |
NNTPStore.close()
Close the connection.
|
void |
NNTPRootFolder.close(boolean expunge) |
void |
NNTPFolder.close(boolean expunge)
This method has no particular meaning in NNTP.
|
boolean |
NNTPRootFolder.create(int type) |
boolean |
NNTPFolder.create(int type)
NNTP servers are read-only.
|
boolean |
NNTPRootFolder.delete(boolean flag) |
boolean |
NNTPFolder.delete(boolean recurse)
NNTP servers are read-only.
|
boolean |
NNTPRootFolder.exists() |
boolean |
NNTPFolder.exists()
Indicates whether the newsgroup is present on the server.
|
Message[] |
NNTPRootFolder.expunge() |
Message[] |
NNTPFolder.expunge()
NNTP servers are read-only.
|
void |
NNTPFolder.fetch(Message[] msgs,
FetchProfile fp)
Prefetch.
|
Enumeration |
NNTPMessage.getAllHeaderLines() |
Enumeration |
NNTPMessage.getAllHeaders() |
InputStream |
NNTPMessage.getContentStream() |
Folder |
NNTPStore.getDefaultFolder()
Returns the folder representing the "root" namespace.
|
Folder |
NNTPStore.getFolder(String name)
Returns a folder by name.
|
Folder |
NNTPRootFolder.getFolder(String name)
Returns a new Folder object associated with the specified name.
|
Folder |
NNTPFolder.getFolder(String name)
This folder type does not contain other folders.
|
Folder |
NNTPStore.getFolder(URLName url)
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 |
NNTPMessage.getLineCount() |
Enumeration |
NNTPMessage.getMatchingHeaderLines(String[] names) |
Enumeration |
NNTPMessage.getMatchingHeaders(String[] names) |
Message |
NNTPRootFolder.getMessage(int msgnum) |
Message |
NNTPFolder.getMessage(int msgnum)
Returns the article corresponding to the specified article
number.
|
int |
NNTPRootFolder.getMessageCount() |
int |
NNTPFolder.getMessageCount()
Returns the number of articles in this newsgroup.
|
Message[] |
NNTPFolder.getMessages()
Returns all articles in this group.
|
Enumeration |
NNTPMessage.getNonMatchingHeaderLines(String[] names) |
Enumeration |
NNTPMessage.getNonMatchingHeaders(String[] names) |
Folder |
NNTPRootFolder.getParent() |
Folder |
NNTPFolder.getParent()
This implementation uses a flat namespace, so the parent of any
NNTPFolder is the NNTP root folder.
|
char |
NNTPRootFolder.getSeparator()
As we're dealing with a flat namespace, the value of this is
irrelevant.
|
char |
NNTPFolder.getSeparator()
If we move away from a flat namespace, this might be useful.
|
int |
NNTPMessage.getSize() |
int |
NNTPFolder.getType()
Returns the type of this folder.
|
boolean |
NNTPRootFolder.hasNewMessages() |
boolean |
NNTPFolder.hasNewMessages()
Indicates whether there are new articles in this newsgroup.
|
Folder[] |
NNTPRootFolder.list(ListFolderListener listener)
Returns the list of folders matching the specified pattern.
|
Folder[] |
NNTPRootFolder.list(String pattern)
Returns the list of folders matching the specified pattern.
|
Folder[] |
NNTPFolder.list(String pattern)
This folder type does not contain other folders.
|
Folder[] |
NNTPRootFolder.list(String pattern,
ListFolderListener listener)
Returns the list of folders matching the specified pattern.
|
Folder[] |
NNTPRootFolder.listSubscribed(String pattern)
Returns the list of subscribed folders matching the specified pattern.
|
Folder[] |
NNTPFolder.listSubscribed(String pattern)
This folder type does not contain other folders.
|
void |
NNTPRootFolder.open(int mode) |
void |
NNTPFolder.open(int mode)
This method has no particular meaning in NNTP.
|
protected boolean |
NNTPTransport.protocolConnect(String host,
int port,
String username,
String password)
Performs the protocol connection.
|
protected boolean |
NNTPStore.protocolConnect(String host,
int port,
String username,
String password)
Performs the protocol connection.
|
boolean |
NNTPRootFolder.renameTo(Folder folder) |
boolean |
NNTPFolder.renameTo(Folder folder)
NNTP servers are read-only.
|
void |
NNTPMessage.saveChanges() |
void |
NNTPTransport.sendMessage(Message message,
Address[] addresses)
Post an article.
|
void |
NNTPMessage.setFlags(Flags flag,
boolean set) |
void |
NNTPRootFolder.setSubscribed(boolean flag)
This folder is always "subscribed".
|
void |
NNTPFolder.setSubscribed(boolean flag)
Subscribes or unsubscribes to this newsgroup.
|
Modifier and Type | Method and Description |
---|---|
void |
POP3Folder.appendMessages(Message[] messages)
You can't append messages to a POP3 folder.
|
void |
POP3Store.close()
Closes the connection.
|
void |
POP3Folder.close(boolean expunge)
Closes this folder.
|
boolean |
POP3Folder.create(int i)
POP3 folders can't be created, deleted, or renamed.
|
boolean |
POP3Folder.delete(boolean flag)
POP3 folders can't be created, deleted, or renamed.
|
boolean |
POP3Folder.exists()
Indicates whether this folder exists.
|
Message[] |
POP3Folder.expunge()
Expunges this folder.
|
void |
POP3Folder.fetch(Message[] messages,
FetchProfile fp)
Fetches headers and/or content for the specified messages.
|
Enumeration |
POP3Message.getAllHeaderLines()
Causes the headers to be read.
|
Enumeration |
POP3Message.getAllHeaders()
Causes the headers to be read.
|
protected InputStream |
POP3Message.getContentStream()
Causes the content to be read in.
|
DataHandler |
POP3Message.getDataHandler()
Causes the content to be read in.
|
Folder |
POP3Store.getDefaultFolder()
Returns the root folder.
|
Folder |
POP3Store.getFolder(String s)
Returns the folder with the specified name.
|
Folder |
POP3Folder.getFolder(String s)
POP3 folders can't contain subfolders.
|
Folder |
POP3Store.getFolder(URLName urlname)
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 |
POP3Message.getMatchingHeaderLines(String[] names)
Causes the headers to be read.
|
Enumeration |
POP3Message.getMatchingHeaders(String[] names)
Causes the headers to be read.
|
Message |
POP3Folder.getMessage(int msgnum)
Returns the specified message from this folder.
|
int |
POP3Folder.getMessageCount()
Returns the number of messages in this folder.
|
Enumeration |
POP3Message.getNonMatchingHeaderLines(String[] names)
Causes the headers to be read.
|
Enumeration |
POP3Message.getNonMatchingHeaders(String[] names)
Causes the headers to be read.
|
Folder |
POP3Folder.getParent()
POP3 folders can't have parents.
|
char |
POP3Folder.getSeparator()
Returns the path separator charcter.
|
int |
POP3Message.getSize()
Gets the size of the message.
|
protected TrustManager |
POP3Store.getTrustManager()
Returns a trust manager used for TLS negotiation.
|
int |
POP3Folder.getType()
Returns the type of this folder.
|
String |
POP3Message.getUID()
Returns the unique ID for this message.
|
String |
POP3Folder.getUID(Message message)
Returns the unique ID for the given message, or
null if
not available. |
boolean |
POP3Folder.hasNewMessages()
Indicates whether this folder contains new messages.
|
Folder[] |
POP3Folder.list()
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.
|
protected boolean |
POP3Store.protocolConnect(String host,
int port,
String username,
String password)
Connects to the POP3 server and authenticates with the specified
parameters.
|
boolean |
POP3Folder.renameTo(Folder folder)
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) |
void |
POP3Message.writeTo(OutputStream msgStream,
String[] ignoreList) |
Modifier and Type | Method and Description |
---|---|
void |
SMTPTransport.close()
Close this transport.
|
String |
SMTPTransport.getGreeting()
Returns the greeting banner.
|
protected 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.
|
Modifier and Type | Class and Description |
---|---|
class |
AuthenticationFailedException
An exception thrown to indicate that authentication failed during a
service's
connect method. |
class |
FolderClosedException
An exception thrown when a method is invoked on a closed folder or one of
its messages.
|
class |
FolderNotFoundException
An exception thrown when a method is invoked on a nonexistent folder.
|
class |
IllegalWriteException
An exception thrown when a modification of a read-only property is
attempted.
|
class |
MessageRemovedException
An exception thrown when an invalid method is invoked on an expunged
message.
|
class |
MethodNotSupportedException
An exception thrown when an operation is not supported by the
implementation.
|
class |
NoSuchProviderException
An exception thrown on an attempt to instantiate a provider that
doesn't exist.
|
class |
ReadOnlyFolderException
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 |
SendFailedException
An exception thrown when a message cannot be sent.
|
class |
StoreClosedException
An exception thrown when a method is invoked on a message or folder
whose owner store has been closed for some reason.
|
Modifier and Type | Method and Description |
---|---|
void |
Multipart.addBodyPart(BodyPart part)
Adds a body part to this multipart.
|
void |
Multipart.addBodyPart(BodyPart part,
int index)
Inserts a body part at the specified index.
|
abstract 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 |
Message.addRecipient(Message.RecipientType type,
Address address)
Adds the recipient address of the given type.
|
abstract void |
Message.addRecipients(Message.RecipientType type,
Address[] addresses)
Adds the recipient addresses of the given type.
|
abstract void |
Folder.appendMessages(Message[] msgs)
Appends the specified messages to this folder.
|
void |
Service.close()
Closes this service, terminating any underlying connections.
|
abstract void |
Folder.close(boolean expunge)
Closes this folder.
|
void |
Service.connect()
Connects to this service.
|
void |
Service.connect(String host,
int port,
String user,
String password)
Connects to this service using the specified details.
|
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 |
Folder.copyMessages(Message[] msgs,
Folder folder)
Copies the specified messages into another folder.
|
abstract boolean |
Folder.create(int type)
Create this folder in the store.
|
abstract boolean |
Folder.delete(boolean recurse)
Deletes this folder.
|
abstract boolean |
Folder.exists()
Indicates whether this folder exists in the Store.
|
abstract Message[] |
Folder.expunge()
Expunges (permanently removing) all the messages marked DELETED.
|
void |
Folder.fetch(Message[] msgs,
FetchProfile fp)
Fetches the items specified in the given fetch profile for the specified
messages.
|
Enumeration |
Part.getAllHeaders()
Returns all the headers from this part.
|
Address[] |
Message.getAllRecipients()
Returns all the recipient addresses in the message.
|
BodyPart |
MultipartDataSource.getBodyPart(int index)
Returns the specified body part.
|
BodyPart |
Multipart.getBodyPart(int index)
Get the specified body part.
|
Object |
Part.getContent()
Returns the content of this part as a Java object.
|
String |
Part.getContentType()
Returns the content-type of the content of this part, or
null if the content-type could not be determined. |
int |
Multipart.getCount()
Returns the number of enclosed body parts.
|
DataHandler |
Part.getDataHandler()
Returns a data handler for the content of this part.
|
abstract Folder |
Store.getDefaultFolder()
Returns a folder that represents the root of the primary namespace
presented to the user by this store.
|
int |
Folder.getDeletedMessageCount()
Returns the number of deleted messages in this folder.
|
String |
Part.getDescription()
Returns the description of this part.
|
String |
Part.getDisposition()
Returns the disposition of this part.
|
String |
Part.getFileName()
Returns the filename associated with this part, if available.
|
abstract Flags |
Message.getFlags()
Returns the flags for this message.
|
abstract Folder |
Store.getFolder(String name)
Returns the folder with the given name.
|
abstract Folder |
Folder.getFolder(String name)
Return a folder corresponding to the given name.
|
abstract Folder |
Store.getFolder(URLName url)
Returns the folder corresponding to the given URLName.
|
Folder |
Session.getFolder(URLName url)
Get a closed Folder object for the given URLName.
|
abstract Address[] |
Message.getFrom()
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 |
Part.getInputStream()
Returns an input stream for reading the content of this part.
|
int |
Part.getLineCount()
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.
|
abstract Message |
Folder.getMessage(int msgnum)
Returns the message with the given number.
|
Message |
UIDFolder.getMessageByUID(long uid)
Returns the message corresponding to the given UID, or
null if no such message exists. |
abstract int |
Folder.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.
|
int |
Folder.getNewMessageCount()
Returns the number of new messages in this folder.
|
Enumeration |
Part.getNonMatchingHeaders(String[] names)
Returns the non-matching headers from this part.
|
abstract Folder |
Folder.getParent()
Returns the parent folder of this folder, or
null
if this folder is the root of a folder hierarchy. |
Folder[] |
Store.getPersonalNamespaces()
Returns the personal namespaces for the authenticated user.
|
Quota[] |
QuotaAwareStore.getQuota(String root)
Returns the quotas for the given quota root.
|
abstract Date |
Message.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 Date |
Message.getSentDate()
Returns the date this message was sent.
|
abstract char |
Folder.getSeparator()
Return the hierarchy delimiter character for this folder.
|
Folder[] |
Store.getSharedNamespaces()
Returns the shared namespaces.
|
int |
Part.getSize()
Returns the size of the content of this part in bytes, or -1 if the
size cannot be determined.
|
abstract String |
Message.getSubject()
Returns the subject of this message.
|
abstract int |
Folder.getType()
Returns the type of this Folder, i.e.
|
long |
UIDFolder.getUID(Message message)
Returns the UID for the specified message.
|
long |
UIDFolder.getUIDValidity()
Returns the UIDValidity value associated with this folder.
|
int |
Folder.getUnreadMessageCount()
Returns the number of unread messages in this folder.
|
URLName |
Folder.getURLName()
Return a URLName that can be used as a handle to access this folder.
|
Folder[] |
Store.getUserNamespaces(String user)
Returns the personal namespaces for the specified user.
|
abstract boolean |
Folder.hasNewMessages()
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 |
Message.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(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(String pattern)
Returns a list of subscribed subfolders matching the specified pattern.
|
boolean |
Message.match(SearchTerm term)
Indicates whether the specified search term applies to this message.
|
abstract void |
Folder.open(int mode)
Opens this folder.
|
protected boolean |
Service.protocolConnect(String host,
int port,
String user,
String password)
Provider implementation for a service.
|
boolean |
Multipart.removeBodyPart(BodyPart part)
Removes the specified body part from this multipart.
|
void |
Multipart.removeBodyPart(int index)
Removes the body part at the specified index.
|
void |
Part.removeHeader(String name)
Removes all headers of the specified name.
|
abstract boolean |
Folder.renameTo(Folder folder)
Renames this folder.
|
abstract Message |
Message.reply(boolean replyToAll)
Returns a new message suitable for a reply to this message.
|
abstract void |
Message.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 void |
Transport.send(Message msg)
Sends the specified message.
|
static void |
Transport.send(Message msg,
Address[] addresses)
Sends the message to the specified addresses, ignoring any recipients
specified in the message itself.
|
abstract void |
Transport.sendMessage(Message msg,
Address[] addresses)
Sends the message to the specified list of addresses.
|
void |
Part.setContent(Multipart mp)
Sets the multipart content of this part.
|
void |
Part.setContent(Object obj,
String type)
Sets the content of this part using the specified object.
|
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.
|
abstract void |
Message.setFlags(Flags flag,
boolean set)
Sets the specified flags on this message to the given value.
|
void |
Folder.setFlags(int[] msgnums,
Flags flag,
boolean value)
Sets the specified flags on each of the specified messages.
|
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(Message[] msgs,
Flags flag,
boolean value)
Sets the specified flags on each specified message.
|
abstract void |
Message.setFrom()
Sets the identity of the person sending this message, as obtained
from the property "mail.user".
|
abstract void |
Message.setFrom(Address address)
Sets the identity of the person sending this message.
|
void |
Part.setHeader(String name,
String value)
Sets the value for the specified header name.
|
protected void |
Multipart.setMultipartDataSource(MultipartDataSource mp)
Configures this multipart from the given data source.
|
void |
QuotaAwareStore.setQuota(Quota quota)
Sets the quotas for the quota root specified in the quota argument.
|
void |
Message.setRecipient(Message.RecipientType type,
Address address)
Sets the recipient address of the specified type.
|
abstract void |
Message.setRecipients(Message.RecipientType type,
Address[] addresses)
Sets the recipient addresses of the specified type.
|
void |
Message.setReplyTo(Address[] addresses)
Sets the addresses to which replies should be directed.
|
abstract void |
Message.setSentDate(Date date)
Sets the date this message was sent.
|
abstract 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 |
Part.writeTo(OutputStream os)
Writes this part to the specified byte stream.
|
abstract void |
Multipart.writeTo(OutputStream os)
Writes this multipart to the specified byte stream.
|
Modifier and Type | Class and Description |
---|---|
class |
AddressException
An exception thrown when an incorrectly formatted address is encountered.
|
class |
ParseException
An exception thrown to indicate an error parsing RFC822 or MIME headers.
|
Modifier and Type | Method and Description |
---|---|
void |
MimeMessage.addFrom(Address[] addresses)
Adds the specified addresses to From header field.
|
void |
MimeMessage.addHeader(String name,
String value)
Adds the specified header.
|
void |
MimeBodyPart.addHeader(String name,
String value)
Adds the specified header.
|
void |
MimePart.addHeaderLine(String line)
Adds an RFC822 header-line.
|
void |
MimeMessage.addHeaderLine(String line)
Adds an RFC 822 header-line to this message.
|
void |
MimeBodyPart.addHeaderLine(String line)
Adds an RFC 822 header-line to this part.
|
void |
MimeMessage.addRecipients(Message.RecipientType type,
Address[] addresses)
Adds the given addresses to the recipients of the specified type.
|
void |
MimeMessage.addRecipients(Message.RecipientType type,
String addresses)
Adds the given addresses to the recipients of the specified type.
|
void |
MimeBodyPart.attachFile(File file)
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.
|
protected InternetHeaders |
MimeMultipart.createInternetHeaders(InputStream is)
Creates headers from the specified input stream.
|
protected InternetHeaders |
MimeMessage.createInternetHeaders(InputStream is)
Creates the headers from the given input stream.
|
protected MimeBodyPart |
MimeMultipart.createMimeBodyPart(InputStream is)
Creates a MIME body part from the specified input stream.
|
protected MimeBodyPart |
MimeMultipart.createMimeBodyPart(InternetHeaders headers,
byte[] content)
Creates a MIME body part object from the given headers and byte content.
|
protected MimeMessage |
MimeMessage.createMimeMessage(Session session)
Creates a new MIME message.
|
static InputStream |
MimeUtility.decode(InputStream is,
String encoding)
Decodes the given input stream.
|
static OutputStream |
MimeUtility.encode(OutputStream os,
String encoding)
Encodes the given output stream.
|
static OutputStream |
MimeUtility.encode(OutputStream os,
String encoding,
String filename)
Encodes the given output stream.
|
Enumeration |
MimePart.getAllHeaderLines()
Returns all the header-lines.
|
Enumeration |
MimeMessage.getAllHeaderLines()
Returns all the header-lines.
|
Enumeration |
MimeBodyPart.getAllHeaderLines()
Returns all the header-lines.
|
Enumeration |
MimeMessage.getAllHeaders()
Returns all the headers.
|
Enumeration |
MimeBodyPart.getAllHeaders()
Returns all the headers.
|
Address[] |
MimeMessage.getAllRecipients()
Returns all the recipients.
|
BodyPart |
MimeMultipart.getBodyPart(int index)
Returns the specified body part.
|
BodyPart |
MimeMultipart.getBodyPart(String CID)
Returns the body part identified by the given Content-ID (CID).
|
Object |
MimeMessage.getContent()
Returns this message's content as a Java object.
|
Object |
MimeBodyPart.getContent()
Returns this part's content as a Java object.
|
String |
MimePart.getContentID()
Returns the value of the Content-ID header field of this part.
|
String |
MimeMessage.getContentID()
Returns the value of the Content-ID header field.
|
String |
MimeBodyPart.getContentID()
Returns the value of the Content-ID header field.
|
String[] |
MimePart.getContentLanguage()
Returns the languages specified in the Content-Language header of this
part, as defined by RFC 1766.
|
String[] |
MimeMessage.getContentLanguage()
Returns the languages specified in the Content-Language header field
of this message, as defined by RFC 1766.
|
String[] |
MimeBodyPart.getContentLanguage()
Returns the languages specified in the Content-Language header of this
part, as defined by RFC 1766.
|
String |
MimePart.getContentMD5()
Returns the value of the Content-MD5 header field of this part.
|
String |
MimeMessage.getContentMD5()
Returns the value of the Content-MD5 header field.
|
String |
MimeBodyPart.getContentMD5()
Returns the value of the Content-MD5 header field.
|
protected InputStream |
MimeMessage.getContentStream()
Returns the unencoded bytes of the content.
|
protected InputStream |
MimeBodyPart.getContentStream()
Returns the unencoded bytes of the content.
|
String |
MimeMessage.getContentType()
Returns the value of the RFC 822 Content-Type header field, or
"text/plain" if the header is not available.
|
String |
MimeBodyPart.getContentType()
Returns the value of the RFC 822 Content-Type header field, or
"text/plain" if the header is not available.
|
int |
MimeMultipart.getCount()
Returns the number of component body parts.
|
DataHandler |
MimeMessage.getDataHandler()
Returns a data handler for accessing this message's content.
|
DataHandler |
MimeBodyPart.getDataHandler()
Returns a data handler for accessing this part's content.
|
String |
MimeMessage.getDescription()
Returns the Content-Description header field of this message.
|
String |
MimeBodyPart.getDescription()
Returns the Content-Description header field of this part.
|
String |
MimeMessage.getDisposition()
Returns the value of the RFC 822 Content-Disposition header field, or
null if the header is not available. |
String |
MimeBodyPart.getDisposition()
Returns the value of the RFC 822 Content-Disposition header field, or
null if the header is not available. |
String |
MimePart.getEncoding()
Returns the value of the Content-Transfer-Encoding header field of
this part.
|
String |
MimeMessage.getEncoding()
Returns the value of the Content-Transfer-Encoding header field.
|
String |
MimeBodyPart.getEncoding()
Returns the value of the Content-Transfer-Encoding header field.
|
String |
MimeMessage.getFileName()
Returns the filename associated with this message.
|
String |
MimeBodyPart.getFileName()
Returns the filename associated with this body part.
|
Flags |
MimeMessage.getFlags()
Returns the flags for this message.
|
Address[] |
MimeMessage.getFrom()
Returns the value of the RFC 822 From header field.
|
String[] |
MimeMessage.getHeader(String name)
Returns all the values for the specified header name.
|
String[] |
MimeBodyPart.getHeader(String name)
Returns all the values for the specified header name.
|
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.
|
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 |
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.
|
InputStream |
MimeMessage.getInputStream()
Returns a decoded input stream for this message's content.
|
InputStream |
MimeBodyPart.getInputStream()
Returns a decoded input stream for this part's content.
|
int |
MimeMessage.getLineCount()
Returns the number of lines in the content of this message, or -1 if
this number cannot be determined.
|
int |
MimeBodyPart.getLineCount()
Returns the number of lines in the content of this body part, or -1 if
this number cannot be determined.
|
Enumeration |
MimePart.getMatchingHeaderLines(String[] names)
Returns all the header-lines with any of the given names.
|
Enumeration |
MimeMessage.getMatchingHeaderLines(String[] names)
Returns all the header-lines with any of the given names.
|
Enumeration |
MimeBodyPart.getMatchingHeaderLines(String[] names)
Returns all the header-lines with any of the given names.
|
Enumeration |
MimeMessage.getMatchingHeaders(String[] names)
Returns all the headers with any of the given names.
|
Enumeration |
MimeBodyPart.getMatchingHeaders(String[] names)
Returns all the headers with any of the given names.
|
String |
MimeMessage.getMessageID()
Returns the value of the Message-ID header field.
|
Enumeration |
MimePart.getNonMatchingHeaderLines(String[] names)
Returns all the header-lines without any of the given names.
|
Enumeration |
MimeMessage.getNonMatchingHeaderLines(String[] names)
Returns all the header-lines without any of the given names.
|
Enumeration |
MimeBodyPart.getNonMatchingHeaderLines(String[] names)
Returns all the header-lines without any of the given names.
|
Enumeration |
MimeMessage.getNonMatchingHeaders(String[] names)
Returns all the headers without any of the given names.
|
Enumeration |
MimeBodyPart.getNonMatchingHeaders(String[] names)
Returns all the headers without any of the given names.
|
String |
MimeMultipart.getPreamble()
Returns the preamble text (if any) before the first boundary line in
this multipart's body.
|
InputStream |
MimeMessage.getRawInputStream()
Returns the unencoded bytes of the content without applying any content
transfer encoding.
|
InputStream |
MimeBodyPart.getRawInputStream()
Returns the unencoded bytes of the content without applying any
content transfer decoding.
|
Date |
MimeMessage.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.
|
Address |
MimeMessage.getSender()
Returns the value of the RFC 822 Sender header field.
|
Date |
MimeMessage.getSentDate()
Returns the value of the RFC 822 Date field.
|
int |
MimeMessage.getSize()
Returns the size of the content of this message in bytes, or -1 if the
size cannot be determined.
|
int |
MimeBodyPart.getSize()
Returns the size of the content of this body part in bytes, or -1 if
the size cannot be determined.
|
String |
MimeMessage.getSubject()
Returns the value of the Subject header field.
|
boolean |
MimeMultipart.isComplete()
Indicates whether the final boundary line for this multipart has been
parsed.
|
boolean |
MimeMessage.isMimeType(String mimeType)
Indicates whether this message is of the specified MIME type.
|
boolean |
MimeBodyPart.isMimeType(String mimeType)
Indicates whether this part is of the specified MIME type.
|
boolean |
MimeMessage.isSet(Flags.Flag flag)
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.
|
protected void |
MimeMultipart.parse()
Parses the body parts from this multipart's data source.
|
protected void |
MimeMessage.parse(InputStream is)
Parses the given input stream, setting the headers and content fields
appropriately.
|
void |
MimeMessage.removeHeader(String name)
Removes all headers with the specified name.
|
void |
MimeBodyPart.removeHeader(String name)
Removes all headers with the specified name.
|
Message |
MimeMessage.reply(boolean replyToAll)
Returns a new message suitable for a reply to this message.
|
void |
MimeMessage.saveChanges()
Saves any changes to this message.
|
void |
MimeBodyPart.saveFile(File file)
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 |
MimeMessage.setContent(Multipart mp)
Sets the content of this message to be the specified multipart.
|
void |
MimeBodyPart.setContent(Multipart mp)
Sets the content of this part to be the specified multipart.
|
void |
MimeMessage.setContent(Object o,
String type)
Sets the content of this message using the specified Java object and
MIME type.
|
void |
MimeBodyPart.setContent(Object o,
String type)
Sets the content of this part using the specified Java object and MIME
type.
|
void |
MimeMessage.setContentID(String cid)
Sets the Content-ID header field of this message.
|
void |
MimeBodyPart.setContentID(String cid)
Sets the Content-ID header field of this part.
|
void |
MimePart.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 |
MimeBodyPart.setContentLanguage(String[] languages)
Sets the Content-Language header of this part.
|
void |
MimePart.setContentMD5(String md5)
Sets the Content-MD5 header value for this part.
|
void |
MimeMessage.setContentMD5(String md5)
Sets the Content-MD5 header field of this message.
|
void |
MimeBodyPart.setContentMD5(String md5)
Sets the Content-MD5 header field of this part.
|
void |
MimeMessage.setDataHandler(DataHandler datahandler)
Sets the content of this part using the specified data handler.
|
void |
MimeBodyPart.setDataHandler(DataHandler dh)
Sets the content of this part using the specified data handler.
|
void |
MimeMessage.setDescription(String description)
Sets the Content-Description header field for this message.
|
void |
MimeBodyPart.setDescription(String description)
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.setDescription(String description,
String charset)
Sets the Content-Description header field for this part.
|
void |
MimeMessage.setDisposition(String disposition)
Sets the Content-Disposition header field of this message.
|
void |
MimeBodyPart.setDisposition(String disposition)
Sets the Content-Disposition header field of this part.
|
void |
MimeMessage.setFileName(String filename)
Sets the filename associated with this part.
|
void |
MimeBodyPart.setFileName(String filename)
Sets the filename associated with this body part.
|
void |
MimeMessage.setFlags(Flags flag,
boolean set)
Sets the flags for this message.
|
void |
MimeMessage.setFrom()
Sets the RFC 822 From header field using the value of the
InternetAddress.getLocalAddress method. |
void |
MimeMessage.setFrom(Address address)
Sets the RFC 822 From header field.
|
void |
MimeMessage.setHeader(String name,
String value)
Sets the specified header.
|
void |
MimeBodyPart.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 |
MimeMessage.setRecipients(Message.RecipientType type,
Address[] addresses)
Sets the recipients of the given type.
|
void |
MimeMessage.setRecipients(Message.RecipientType type,
String addresses)
Sets the recipients of the given type.
|
void |
MimeMessage.setReplyTo(Address[] addresses)
Sets the RFC 822 Reply-To header field.
|
void |
MimeMessage.setSender(Address address)
Sets the RFC 822 Sender header field.
|
void |
MimeMessage.setSentDate(Date date)
Sets the RFC 822 Date header field.
|
void |
MimeMessage.setSubject(String subject)
Sets the Subject header field.
|
void |
MimeMessage.setSubject(String subject,
String charset)
Sets the Subject header field.
|
void |
MimeMultipart.setSubType(String subtype)
Sets the subtype.
|
void |
MimePart.setText(String text)
Sets the content of this message 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 |
MimeBodyPart.setText(String text)
Sets the content of this part 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 |
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 |
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 |
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 |
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 |
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.
|
protected void |
MimeMultipart.updateHeaders()
Updates the headers of this part to be consistent with its content.
|
protected void |
MimeMessage.updateHeaders()
Updates the headers of this part, based on the content.
|
protected void |
MimeBodyPart.updateHeaders()
Updates the headers of this part, based on the content.
|
protected void |
MimeMessage.updateMessageId()
Updates the Message-ID header.
|
void |
MimeMultipart.writeTo(OutputStream os)
Writes this multipart to the specified output stream.
|
void |
MimeMessage.writeTo(OutputStream os)
Writes this message to the specified stream in RFC 822 format.
|
void |
MimeBodyPart.writeTo(OutputStream os)
Writes this body part to the specified stream in RFC 822 format.
|
void |
MimeMessage.writeTo(OutputStream os,
String[] ignoreList)
Writes this message to the specified stream in RFC 822 format, without
the specified headers.
|
Constructor and Description |
---|
InternetHeaders(InputStream is)
Constructor with an RFC 822 message stream.
|
MimeBodyPart(InputStream is)
Constructor with an input stream.
|
MimeBodyPart(InternetHeaders headers,
byte[] content)
Constructor with headers and byte content.
|
MimeMessage(Folder folder,
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,
InputStream is)
Constructor with an input stream contining an RFC 822 message.
|
MimeMultipart(DataSource ds)
Constructor with a given data source.
|
Modifier and Type | Class and Description |
---|---|
class |
SearchException
An exception thrown to indicate that a search expression could not be
handled by the store implementation.
|
© Copyright 2003, 2004 The Free Software Foundation, All rights reserved