Interface ITMailUtil
-
public interface ITMailUtil
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getAttachmentCount(javax.mail.Message messageToCount, ProfileBean profileBean)
com.atlassian.mail.MailUtils.Attachment[]
getAttachments(javax.mail.internet.MimeMessage message, ProfileBean profile)
String
getContent(javax.mail.Message message, ProfileBean bean)
String
getExactContent(javax.mail.Message message, boolean isHtml, ProfileBean bean)
String
getHtmlContent(javax.mail.internet.MimeMessage message, ProfileBean profileBean)
List<Dimension>
getImageDimensionsFromMessage(javax.mail.internet.MimeMessage message, ProfileBean profileBean)
String
getLinkHref(String htmlContent, String string)
String[]
getMissingMessagesRecipientEmails(javax.mail.internet.MimeMessage[] messages, Collection<String> expectedEmails, javax.mail.Message.RecipientType recipientType)
String[]
getRecipients(javax.mail.internet.MimeMessage message, javax.mail.Message.RecipientType recipientType)
String[]
getRecipientsFromMessages(javax.mail.internet.MimeMessage[] messages, javax.mail.Message.RecipientType recipientType)
String[]
getUnexpectedMessagesRecipientEmails(javax.mail.internet.MimeMessage[] messages, Collection<String> expectedEmails, javax.mail.Message.RecipientType recipientType)
-
-
-
Method Detail
-
getContent
String getContent(javax.mail.Message message, ProfileBean bean) throws Exception
- Throws:
Exception
-
getExactContent
String getExactContent(javax.mail.Message message, boolean isHtml, ProfileBean bean) throws Exception
- Throws:
Exception
-
getAttachmentCount
int getAttachmentCount(javax.mail.Message messageToCount, ProfileBean profileBean)
-
getAttachments
com.atlassian.mail.MailUtils.Attachment[] getAttachments(javax.mail.internet.MimeMessage message, ProfileBean profile) throws Exception
- Throws:
Exception
-
getHtmlContent
String getHtmlContent(javax.mail.internet.MimeMessage message, ProfileBean profileBean) throws Exception
- Throws:
Exception
-
getImageDimensionsFromMessage
List<Dimension> getImageDimensionsFromMessage(javax.mail.internet.MimeMessage message, ProfileBean profileBean) throws Exception
- Throws:
Exception
-
getUnexpectedMessagesRecipientEmails
String[] getUnexpectedMessagesRecipientEmails(javax.mail.internet.MimeMessage[] messages, Collection<String> expectedEmails, javax.mail.Message.RecipientType recipientType) throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
-
getMissingMessagesRecipientEmails
String[] getMissingMessagesRecipientEmails(javax.mail.internet.MimeMessage[] messages, Collection<String> expectedEmails, javax.mail.Message.RecipientType recipientType) throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
-
getRecipients
String[] getRecipients(javax.mail.internet.MimeMessage message, javax.mail.Message.RecipientType recipientType) throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
-
getRecipientsFromMessages
String[] getRecipientsFromMessages(javax.mail.internet.MimeMessage[] messages, javax.mail.Message.RecipientType recipientType) throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
-
-