com.openexchange.mail.mime.processing
Class MimeReply

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

public final class MimeReply
extends java.lang.Object

MimeReply - MIME message reply.

Author:
Thorben Betten

Method Summary
static MailMessage getReplyMail(MailMessage originalMail, boolean replyAll, com.openexchange.session.Session session, int accountId)
          Composes a reply message from specified original message based on MIME objects from JavaMail API.
static MailMessage getReplyMail(MailMessage originalMail, boolean replyAll, com.openexchange.session.Session session, int accountId, UserSettingMail usm)
          Composes a reply message from specified original message 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

getReplyMail

public static MailMessage getReplyMail(MailMessage originalMail,
                                       boolean replyAll,
                                       com.openexchange.session.Session session,
                                       int accountId)
                                throws MailException
Composes a reply message from specified original message based on MIME objects from JavaMail API.

Parameters:
originalMail - The referenced original mail
replyAll - true to reply to all; otherwise false
session - The session containing needed user data
accountId - The account ID
Returns:
An instance of MailMessage representing an user-editable reply mail
Throws:
MailException - If reply mail cannot be composed

getReplyMail

public static MailMessage getReplyMail(MailMessage originalMail,
                                       boolean replyAll,
                                       com.openexchange.session.Session session,
                                       int accountId,
                                       UserSettingMail usm)
                                throws MailException
Composes a reply message from specified original message based on MIME objects from JavaMail API.

Parameters:
originalMail - The referenced original mail
replyAll - true to reply to all; otherwise false
session - The session containing needed user data
accountId - The account ID
usm - The user mail settings to use; leave to null to obtain from specified session
Returns:
An instance of MailMessage representing an user-editable reply mail
Throws:
MailException - If reply mail cannot be composed