public final class MimeForward
extends java.lang.Object
MimeForward - MIME message forward.| Modifier and Type | Method and Description |
|---|---|
static MailMessage |
getFowardMail(MailMessage[] originalMails,
com.openexchange.session.Session session,
int accountID)
Composes a forward message from specified original messages based on MIME objects from
JavaMail API. |
static MailMessage |
getFowardMail(MailMessage[] originalMails,
com.openexchange.session.Session session,
int[] accountIDs,
UserSettingMail usm)
Composes a forward message from specified original messages taken from possibly differing accounts based on MIME objects from
JavaMail API. |
static MailMessage |
getFowardMail(MailMessage[] originalMails,
com.openexchange.session.Session session,
int accountID,
UserSettingMail usm)
Composes a forward message from specified original messages based on MIME objects from
JavaMail API. |
public static MailMessage getFowardMail(MailMessage[] originalMails, com.openexchange.session.Session session, int accountID) throws com.openexchange.exception.OXException
JavaMail API.
If multiple messages are given these messages are forwarded as attachments.
originalMails - The referenced original mailssession - The session containing needed user dataaccountID - The account ID of the referenced original mailsMailMessage representing an user-editable forward mailcom.openexchange.exception.OXException - If forward mail cannot be composedpublic static MailMessage getFowardMail(MailMessage[] originalMails, com.openexchange.session.Session session, int accountID, UserSettingMail usm) throws com.openexchange.exception.OXException
JavaMail API.
If multiple messages are given these messages are forwarded as attachments.
originalMails - The referenced original mailssession - The session containing needed user dataaccountID - The account ID of the referenced original mailsusm - The user mail settings to use; leave to null to obtain from specified sessionMailMessage representing an user-editable forward mailcom.openexchange.exception.OXException - If forward mail cannot be composedpublic static MailMessage getFowardMail(MailMessage[] originalMails, com.openexchange.session.Session session, int[] accountIDs, UserSettingMail usm) throws com.openexchange.exception.OXException
JavaMail API.
If multiple messages are given these messages are forwarded as attachments.
originalMails - The referenced original mailssession - The session containing needed user dataaccountIDs - The account IDs of the referenced original mailsusm - The user mail settings to use; leave to null to obtain from specified sessionMailMessage representing an user-editable forward mailcom.openexchange.exception.OXException - If forward mail cannot be composed