Add a predefined profile of headers.
Set all system and user flags from the supplied Flags.
Add a part to the end of the list.
Insert a part into the list at a designated point; all subsequent parts move down
Messages were added to the folder.
Add multiple addresses to the "From" header.
Add a new value to the header with the supplied name.
Add a recipent of a specified type.
Add recipents of a specified type.
The address in RFC822 format.
This abstract class models the addresses in a message.
A Term that compares two Addresses as Strings.
Term that compares two addresses.
Constructor taking the address for this term.
Indicates that this message is an alert.
Term that implements a logical AND across terms.
Constructor for performing a binary AND.
Constructor for performing and AND across an arbitraty number of terms.
Append the supplied messages to this folder.
Return a copy of this instance.
Close this service and terminate its physical connection.
Close this folder; it must already be open.
Called when a connection is closed.
Base for comparison terms.
A generic connect method that takes no parameters allowing subclasses
to implement an appropriate authentication scheme.
Connect to the specified host at the specified port using a simple username/password authenticaion scheme.
Connect to the specified host using a simple username/password authenticaion scheme
and the default port.
An adaptor that receives connection events.
Listener for handling connection events.
Determine if the given profile item is already included.
See if all of the supplied Flags are set
See if the supplied system flags are set
Determine if the specified header is already included.
See if the supplied user flag is set
This message's content (unless sourced from a SharedInputStream).
This message's content (unless sourced from a SharedInputStream).
If the data for this message was supplied by a
SharedInputStream
then this is another such stream representing the content of this message;
if this field is non-null, then
content
will be null.
If the data for this message was supplied by a
SharedInputStream
then this is another such stream representing the content of this message;
if this field is non-null, then
content
will be null.
The content type of this multipart object; defaults to "multipart/mixed"
Copy the specified messages to another folder.
Create a new folder capable of containing subfoldera and/or messages as
determined by the type parameter.
Return the address of this term.
Get all recipients of this message.
Get the specified part; numbering starts at zero.
get the character set from content type
Return the number of enclosed parts
Get the debug setting for this session.
Return the debug output stream.
Retutn a Folder object that represents the root of the namespace for the current user.
Get the "default" instance assuming no authenticator is required.
Get the "default" session.
Return the numbew of messages in this folder that have the Flag.DELETED
flag set.
Return a copy the flags associated with this message.
Return the affected folder.
Return the folder containing this message.
Return a closed folder for the supplied URLName, or null if it cannot be obtained.
Return the folder identified by the URLName; the URLName must refer to this Store.
Get the Folder determined by the supplied name; if the name is relative
then it is interpreted relative to this folder.
Return the Folder corresponding to the given name.
Return the "From" header indicating the identity of the person who the message is from;
in some circumstances this may be different to the actual sender.
Return the full absolute name of this folder.
Return the members of a group address.
Return all the values for the specified header.
Return the values for the specified header as a single String.
Get the headers that have already been included.
Indicate if case should be ignored when matching.
Create a new session initialized with the supplied properties with no authenticator.
Create a new session initialized with the supplied properties which uses the supplied authenticator.
Get the profile items already included.
Return an InternetAddress representing the current user.
Return the affected message.
Return the message that contains the content; if the Part is a
Multipart
then recurse up the chain until a
Message
is found.
Return the text to be displayed to the user.
Retrieve the message with the specified index in this Folder;
messages indices start at 1 not zero.
Return the type of change.
Return the number of messages this folder contains.
Return the message number for this Message.
Return the affected messages.
Retrieve messages with the specified indices.
Retrieve messages with index between start and end inclusive
Return the mode of this folder ass passed to
open(int)
, or -1 if
the folder is closed.
Return the name of this folder.
Return the name of this header.
Return the new folder; only applicable to RENAMED events.
Return the numbew of messages in this folder that have the Flag.RECENT
flag set.
Return the parent for this folder; if the folder is at the root of a heirarchy
this returns null.
Return the Part containing this Multipart object or null if unknown.
Return the
Part
that contains the content.
Get the password authentication associated with a URL
Return the pattern associated with this term.
Get the flags supported by this folder.
Return the personal name.
Return the root folders of the personal namespace belonging to the current user.
Return the properties object for this Session; this is a live collection.
Return the specified property.
Return the provider for a specific protocol.
Return the list of providers available to this application.
Return the date this message was received.
Get all recipients of the given type.
Get the addresses to which replies should be directed.
Return the "Sender" header as an address.
Return the date that this message was sent.
Return the character used by this folder's Store to separate path components.
Return the session associated with the Message containing this Part.
Return the root folders of namespaces that are intended to be shared between users.
Return the store that this folder is part of.
Return a Store for the default protocol defined by the mail.store.protocol property.
Return the Store specified by the given provider.
Return a Store for the protocol specified in the given URL
Return a Store for the specified protocol.
Get the subject for this message.
Return a list of
Flags
containing the system flags that have been set
Method getTransferDataFlavors
Return a Transport for the default protocol specified by the
mail.transport.protocol
property.
Return a transport for the protocol associated with the type of this address.
Return the Transport specified by a Provider
Return a transport for the protocol specified in the URL.
Return a Transport for the specified protocol.
Return a String that identifies this address type.
Return the type of this folder, indicating whether it can contain subfolders,
messages, or both.
Return the type of this address.
The type of this address; always "news".
Return the numbew of messages in this folder that do not have the Flag.SEEN
flag set.
Return the URLName for this folder, which includes the location of the store.
Return a copy of the URLName representing this service with the password and file information removed.
Return a list of user flags that have been set
Return the root folders of the personal namespaces belonging to the supplied user.
Return the value of this header.
Formats ths date as specified by
draft-ietf-drums-msg-fmt-08 dated January 26, 2000
which supercedes RFC822.
Common base class for mail events.
Tests if the patterm associated with this Term is a substring of
the address in the supplied object.
Match to the supplied address.
Match by applying the terms, in order, to the Message and performing an AND operation
to the result.
Checks a matching criteria defined by the concrete subclass of this Term.
Checks a matching criteria defined by the concrete subclass of this Term.
Apply the specified search criteria to this message
Determine if the pattern associated with this term is a substring of the
supplied String.
The text to be presented to the user.
Constructor initializing folder and message msgnum; intended to be used by implementations of Folder.
Constructor initializing the session; intended to by used by client created instances.
Indicates that the message has successfully been delivered to all
recipients.
Indicates that no messages could be delivered.
Indicates that some of the messages were successfully delivered
but that some failed.
The context in which a piece of message content is contained.
Create a MessageContext object describing the context of the supplied Part.
An adaptor that receives message count events.
Event indicating a change in the number of messages in a folder.
Constructor specifying a pattern.
Create a MimeMessage by reading an parsing the data from the supplied stream.
Create an new MimeMessage in the supplied
Folder
and message number.
Create a MimeMessage with the supplied headers and content.
Create a new MimeMessage.
Create a MimeMessage by reading an parsing the data from the supplied stream.
Create an empty MimeMultipart with content type "multipart/mixed"
Create a MimeMultipart from the supplied DataSource.
Create an empty MimeMultipart with the subtype supplied.
The current mode of this folder.
Flag indicating that the message has been modified; set to true when
an empty message is created or when
saveChanges()
is called.
The message associated with this event.
The index of a message withing its folder, or zero if the message was not retrieved from a folder.
To ensure changes are saved to the store, this message should be invoked
before its containing folder is closed.
Flag indicating that the message has been saved.
Search this folder for messages matching the supplied search criteria.
Search the supplied messages for those that match the supplied criteria;
messages must belong to this folder.
Base class for Terms in a parse tree used to represent a search condition.
Send a message to all recipient addresses it contains (as returned by
Message.getAllRecipients()
)
using message transports appropriate for each address.
Send a message to all addresses provided irrespective of any recipients contained in the message itself
using message transports appropriate for each address.
Send a message to the supplied addresses using this transport; if any of the addresses are
invalid then a
SendFailedException
is thrown.
OK, so we have a final class in the API with a heck of a lot of implementation required...
The
Session
associated with this message.
The session from which this service was created.
If true, test that all flags are set; if false, test that all flags are clear.
The calendar cannot be set
Notification to subclasses that the connection state has changed.
Enable debugging for this session.
Set the output stream where debug information should be sent.
Set the expunged flag for this message.
Set a flag to the supplied value.
Set flags on a set of messages to the supplied value.
Set flags on a range of messages to the supplied value.
Set the flags specified to the supplied value; flags not included in the
supplied
Flags
parameter are not affected.
Set flags on the messages to the supplied value; all messages must belong to this folder.
Set the "From" header for this message to the value of the "mail.user" property,
of if that property is not set, to the value of the system property "user.name"
Set the "From" header to the supplied address.
Set the value of the header to the supplied value; any existing
headers are removed.
Set the message number for this Message.
Initialize this multipart object from the supplied data source.
Set the parent of this Multipart object
Set the password authentication associated with a URL.
Make the supplied Provider the default for its protocol.
Set the list of recipients for the specified type to a single address.
Set the list of recipients for the specified type.
Set the addresses to which replies should be directed.
Set the date this message was sent.
Set the subject of this message
Set the user's subscription to this folder.
The store that this folder is part of.
Abstract class that represents a message store.
Constructor specifying session and url of this store.
Event representing motifications from the Store connection.
A Term that provides matching criteria for Strings.
Constructor specifying a pattern.
Constructor specifying pattern and case sensitivity.