コード例 #1
0
 /**
  * Html parts are not attached but rather potentially form the source of issue text. However html
  * part attachments are kept providing they aint empty.
  *
  * @param part The part which will have a content type of text/html to be tested.
  * @return Only returns true if the part is an attachment and not empty
  * @throws MessagingException
  * @throws IOException
  */
 protected boolean attachHtmlParts(final Part part) throws MessagingException, IOException {
   return !MailUtils.isContentEmpty(part) && MailUtils.isPartAttachment(part);
 }
コード例 #2
0
 /**
  * Extracts the description of the issue from the message
  *
  * @param reporter the established reporter of the issue
  * @param message the message from which the issue is created
  * @return the description of the issue
  * @throws MessagingException if cannot find out who is the message from
  */
 private String getDescription(User reporter, Message message) throws MessagingException {
   return recordFromAddressForAnon(reporter, message, MailUtils.getBody(message));
 }