code: public String getContentString(Message message)
      {
          try {
              String strContentType = message.getContentType();
              Object content = message.getContent();
              if (content instanceof MimeMultipart)
              {
                  for (int index = 0; ; index++)
                  {
                      BodyPart bodyPart = ((javax.mail.internet.MimeMultipart)content).getBodyPart(index);
                      Object contents = bodyPart.getContent();
                      if (contents != null)
                          return contents.toString();
                  }
              }
              return message.getContent().toString();     // pend(don) FIX THIS!
          } catch (IOException ex)    {
              ex.printStackTrace();
          } catch (MessagingException ex)    {
              ex.printStackTrace();
          }
          return null;
      }
docs: Get the message content as a string.
  @param message The message.
  @return The message content.