String cte = textPart.getHeader("Content-Transfer-Encoding", null); if (cte != null && !TRANSFER_ENCODINGS.contains(cte.toLowerCase())) textPart.removeHeader("Content-Transfer-Encoding");
repairTransferEncoding(textPart);
    public static String getStringContent(MimePart textPart) throws IOException, MessagingException {        String cte = textPart.getHeader("Content-Transfer-Encoding", null);        if (cte != null && !TRANSFER_ENCODINGS.contains(cte.toLowerCase()))            textPart.removeHeader("Content-Transfer-Encoding");        return decodeText(textPart.getInputStream(), textPart.getContentType());    }