メッセージの複数BodyPartの の内容を文字列に再帰的に追加するメソッドを作成しました。Multipart理由はわかりませんが、文字列の最初のフレーズはnull- なぜ?
コード:
protected void dumpPart(Part p, Email email) throws MessagingException, IOException
    {
        if (p.isMimeType("text/plain"))
        {
            if (!p.getContent().toString().equals(null))
                email.setBody((String)p.getContent());
        }
        else if (p.isMimeType("multipart/*"))
        {
            Multipart mp = (Multipart)p.getContent();
            for (int x = 0; x < mp.getCount(); x++)
            {
                dumpPart(mp.getBodyPart(x), email);
            }
        }
    }
出力:
nullWe did not answer protests to our Order 637 filing...