/** * 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); }