com.openexchange.mail.mime.processing
Class MimeForward

java.lang.Object
  extended by com.openexchange.mail.mime.processing.MimeForward

public final class MimeForward
extends java.lang.Object

MimeForward - MIME message forward.

Author:
Thorben Betten

Method Summary
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFowardMail

public static MailMessage getFowardMail(MailMessage[] originalMails,
                                        com.openexchange.session.Session session,
                                        int accountID)
                                 throws MailException
Composes a forward message from specified original messages based on MIME objects from JavaMail API.

If multiple messages are given these messages are forwarded as attachments.

Parameters:
originalMails - The referenced original mails
session - The session containing needed user data
accountID - The account ID of the referenced original mails
Returns:
An instance of MailMessage representing an user-editable forward mail
Throws:
MailException - If forward mail cannot be composed

getFowardMail

public static MailMessage getFowardMail(MailMessage[] originalMails,
                                        com.openexchange.session.Session session,
                                        int accountID,
                                        UserSettingMail usm)
                                 throws MailException
Composes a forward message from specified original messages based on MIME objects from JavaMail API.

If multiple messages are given these messages are forwarded as attachments.

Parameters:
originalMails - The referenced original mails
session - The session containing needed user data
accountID - The account ID of the referenced original mails
usm - The user mail settings to use; leave to null to obtain from specified session
Returns:
An instance of MailMessage representing an user-editable forward mail
Throws:
MailException - If forward mail cannot be composed

getFowardMail

public static MailMessage getFowardMail(MailMessage[] originalMails,
                                        com.openexchange.session.Session session,
                                        int[] accountIDs,
                                        UserSettingMail usm)
                                 throws MailException
Composes a forward message from specified original messages taken from possibly differing accounts based on MIME objects from JavaMail API.

If multiple messages are given these messages are forwarded as attachments.

Parameters:
originalMails - The referenced original mails
session - The session containing needed user data
accountIDs - The account IDs of the referenced original mails
usm - The user mail settings to use; leave to null to obtain from specified session
Returns:
An instance of MailMessage representing an user-editable forward mail
Throws:
MailException - If forward mail cannot be composed