|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.openexchange.mail.api.MailLogicTools
public class MailLogicTools
MailLogicTools - Provides convenience methods to reply/forward a mail message.
| Constructor Summary | |
|---|---|
MailLogicTools(com.openexchange.session.Session session,
int accountId)
Initializes a new MailLogicTools |
|
| Method Summary | |
|---|---|
MailMessage |
getFowardMessage(MailMessage[] originalMails)
Creates a forward message for the messages specified by originalMails. |
MailMessage |
getFowardMessage(MailMessage[] originalMails,
UserSettingMail usm)
Creates a forward message for the messages specified by originalMails. |
MailMessage |
getReplyMessage(MailMessage originalMail,
boolean replyAll)
Creates a reply message for the message specified by originalMail. |
MailMessage |
getReplyMessage(MailMessage originalMail,
boolean replyAll,
UserSettingMail usm)
Creates a reply message for the message specified by originalMail. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MailLogicTools(com.openexchange.session.Session session,
int accountId)
MailLogicTools
session - The session providing user dataaccountId - The account ID| Method Detail |
|---|
public MailMessage getReplyMessage(MailMessage originalMail,
boolean replyAll)
throws MailException
originalMail.
If mailing system deals with common RFC822 messages, this convenience method only delegates its request to
MimeReply#getReplyMail(MailMessage, boolean, Session) and can be left unchanged. Otherwise an message data specific
implementation is needed.
originalMail - The original mailreplyAll - true to reply to all recipients; otherwise false
MailMessage representing the reply message
MailException - If reply message cannot be generated
public MailMessage getReplyMessage(MailMessage originalMail,
boolean replyAll,
UserSettingMail usm)
throws MailException
originalMail.
If mailing system deals with common RFC822 messages, this convenience method only delegates its request to
MimeReply#getReplyMail(MailMessage, boolean, Session) and can be left unchanged. Otherwise an message data specific
implementation is needed.
originalMail - The original mailreplyAll - true to reply to all recipients; otherwise falseusm - The user mail settings to use; leave to null to obtain from specified session
MailMessage representing the reply message
MailException - If reply message cannot be generated
public MailMessage getFowardMessage(MailMessage[] originalMails)
throws MailException
originalMails. If multiple messages are specified then these
messages are forwarded as attachment since no inline forward is possible.
If mailing system deals with common RFC822 messages, this convenience method only delegates its request to
MimeForward#getFowardMail(MailMessage[], Session) and can be left unchanged. Otherwise a message data specific implementation
is needed.
originalMails - The original mails
MailMessage representing the forward message
MailException - If forward message cannot be generated
public MailMessage getFowardMessage(MailMessage[] originalMails,
UserSettingMail usm)
throws MailException
originalMails. If multiple messages are specified then these
messages are forwarded as attachment since no inline forward is possible.
If mailing system deals with common RFC822 messages, this convenience method only delegates its request to
MimeForward#getFowardMail(MailMessage[], Session) and can be left unchanged. Otherwise a message data specific implementation
is needed.
originalMails - The original mailsusm - The user mail settings to use; leave to null to obtain from specified session
MailMessage representing the forward message
MailException - If forward message cannot be generated
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||