Package | Description |
---|---|
javax.mail | |
javax.mail.event | |
javax.mail.internet | |
javax.mail.search |
Modifier and Type | Method and Description |
---|---|
abstract Message[] |
Folder.expunge()
Permanently delete all supplied messages that have the DELETED flag set from the Store.
|
Message |
MessageContext.getMessage()
|
abstract Message |
Folder.getMessage(int index)
Retrieve the message with the specified index in this Folder;
messages indices start at 1 not zero.
|
Message |
UIDFolder.getMessageByUID(long uid)
Retrieve a message using the UID rather than the
message sequence number.
|
Message[] |
Folder.getMessages()
Retrieve all messages.
|
Message[] |
Folder.getMessages(int[] ids)
Retrieve messages with the specified indices.
|
Message[] |
Folder.getMessages(int start,
int end)
Retrieve messages with index between start and end inclusive
|
Message[] |
UIDFolder.getMessagesByUID(long[] ids)
Retrieve a set of messages by explicit UIDs.
|
Message[] |
UIDFolder.getMessagesByUID(long start,
long end)
Get a series of messages using a UID range.
|
abstract Message |
Message.reply(boolean replyToAll)
Create a new message suitable as a reply to this message with all headers set
up appropriately.
|
Message[] |
Folder.search(SearchTerm term)
Search this folder for messages matching the supplied search criteria.
|
Message[] |
Folder.search(SearchTerm term,
Message[] messages)
Search the supplied messages for those that match the supplied criteria;
messages must belong to this folder.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
Folder.appendMessages(Message[] messages)
Append the supplied messages to this folder.
|
void |
Folder.copyMessages(Message[] messages,
Folder folder)
Copy the specified messages to another folder.
|
void |
Folder.fetch(Message[] messages,
FetchProfile profile)
Hint to the store to prefetch information on the supplied messaged.
|
long |
UIDFolder.getUID(Message message)
Retrieve the UID for a message from this Folder.
|
protected void |
Folder.notifyMessageAddedListeners(Message[] messages) |
protected void |
Folder.notifyMessageChangedListeners(int type,
Message message) |
protected void |
Folder.notifyMessageRemovedListeners(boolean removed,
Message[] messages) |
protected void |
Transport.notifyTransportListeners(int type,
Address[] validSent,
Address[] validUnsent,
Address[] invalid,
Message message) |
Message[] |
Folder.search(SearchTerm term,
Message[] messages)
Search the supplied messages for those that match the supplied criteria;
messages must belong to this folder.
|
static void |
Transport.send(Message message)
Send a message to all recipient addresses the message contains (as returned by
getAllRecipients() )
using message transports appropriate for each address. |
static void |
Transport.send(Message message,
Address[] addresses)
Send a message to all addresses provided irrespective of any recipients contained in the message,
using message transports appropriate for each address.
|
abstract void |
Transport.sendMessage(Message message,
Address[] addresses)
Send a message to the supplied addresses using this transport; if any of the addresses are
invalid then a
SendFailedException is thrown. |
void |
Folder.setFlags(Message[] messages,
Flags flags,
boolean value)
Set flags on the messages to the supplied value; all messages must belong to this folder.
|
Modifier and Type | Field and Description |
---|---|
protected Message |
MessageChangedEvent.msg |
protected Message |
TransportEvent.msg
The message associated with this event.
|
protected Message[] |
MessageCountEvent.msgs
The affected messages.
|
Modifier and Type | Method and Description |
---|---|
Message |
MessageChangedEvent.getMessage()
Return the affected message.
|
Message |
TransportEvent.getMessage() |
Message[] |
MessageCountEvent.getMessages()
Return the affected messages.
|
Constructor and Description |
---|
MessageChangedEvent(Object source,
int type,
Message message)
Constructor.
|
MessageCountEvent(Folder folder,
int type,
boolean removed,
Message[] messages)
Construct a new event.
|
TransportEvent(Transport transport,
int type,
Address[] validSent,
Address[] validUnsent,
Address[] invalid,
Message message)
Construct a new event,
|
Modifier and Type | Class and Description |
---|---|
class |
MimeMessage |
Modifier and Type | Method and Description |
---|---|
Message |
MimeMessage.reply(boolean replyToAll) |
Modifier and Type | Method and Description |
---|---|
boolean |
SubjectTerm.match(Message message) |
abstract boolean |
SearchTerm.match(Message message)
Checks a matching criteria defined by the concrete subclass of this Term.
|
boolean |
MessageIDTerm.match(Message message) |
boolean |
SizeTerm.match(Message message) |
boolean |
RecipientStringTerm.match(Message message) |
boolean |
FromStringTerm.match(Message message) |
boolean |
FlagTerm.match(Message message) |
boolean |
BodyTerm.match(Message message) |
boolean |
OrTerm.match(Message message) |
boolean |
SentDateTerm.match(Message message) |
boolean |
MessageNumberTerm.match(Message message) |
boolean |
FromTerm.match(Message message) |
boolean |
NotTerm.match(Message message) |
boolean |
HeaderTerm.match(Message message) |
boolean |
ReceivedDateTerm.match(Message message) |
boolean |
AndTerm.match(Message message)
Match by applying the terms, in order, to the Message and performing an AND operation
to the result.
|
boolean |
RecipientTerm.match(Message message) |
Copyright © 2013. All rights reserved.