public interface Mailbox
| Modifier and Type | Method and Description |
|---|---|
Email |
forward(Email memo)
Creates a new memo as a forward of an existing memo.
|
Email |
forward(Email memo,
boolean withAttachments)
Creates a new memo as a forward to an existing memo.
|
Email |
getEmail(EmailDigest emailDigest)
Returns the email represented by the given email-digest.
|
Iterator |
getInbox()
Returns an iterator over all mails in the Inbox.
|
Iterator |
getInbox(boolean reverseOrder)
Returns an iterator over all mails in the Inbox.
|
String |
getOwner()
Returns the name of the owner of a mailbox.
|
Email |
newEmail()
Creates a new Memo.
|
void |
remove(Email memo)
Deletes an existing memo.
|
void |
remove(EmailDigest memo)
Deletes an existing memo.
|
Email |
reply(Email memo,
boolean withHistory,
boolean withAttachments)
Creates a new memo as a reply to the sender of the original memo.
|
Email |
replyToAll(Email memo,
boolean withHistory,
boolean withAttachments)
Creates a new memo as a reply to all original recipients of the original memo.
|
void |
saveAsDraft(Email memo)
Sends a memo.
|
void |
send(Email memo)
Sends a memo.
|
String getOwner()
Iterator getInbox()
Iterator getInbox(boolean reverseOrder)
Depending on how the inbox is sorted (ascending or descending by date), choose where to start reading mails.
reverseOrder - whether to start at the beginning or at the endEmail newEmail()
void saveAsDraft(Email memo)
memo - the memo to sendvoid send(Email memo)
memo - the memo to sendEmail forward(Email memo)
memo - the memo to forwardEmail forward(Email memo, boolean withAttachments)
memo - an existing memowithAttachments - forward with or without attachmentsEmail reply(Email memo, boolean withHistory, boolean withAttachments)
memo - the memo to forwardwithHistory - if the original mail should be includedwithAttachments - if attachments should be includedEmail replyToAll(Email memo, boolean withHistory, boolean withAttachments)
memo - the memo to forwardwithHistory - if the original mail should be includedwithAttachments - if attachments should be includedvoid remove(Email memo)
memo - a memo to deletevoid remove(EmailDigest memo)
memo - a memo digest to deleteEmail getEmail(EmailDigest emailDigest)
emailDigest - an email-digestCopyright © 2005–2020. All rights reserved.