title: JavaMail is losing some POP3 message headers and treats multipart/mixed as text/plain
body: <p>I am having a strange issue parsing some POP3 messages in JavaMail 1.4.4 - Java 1.4,  also in Java 1.6.</p>
  
  <p>I am parsing a <code>com.sun.mail.pop3.POP3Message</code> retrieved from a Windows 2003 POP3 service mailbox. When I go through the <code>getAllHeaderLines()</code> Enumeration and compare them to the source message I see that the Reply-To header is cut off in mid email address and all remaining headers are missing (specifically Subject, To, In-Reply-To, MIME-Version, Contact-Type, Return-Path and  X-OriginalArrivalTime). The <code>getContentType()</code> method returns text/plain and the <code>getContent()</code> method returns the entire multipart/mixed message as a String.</p>
  
  <p>Everything about the message looks normal and matches the source message file when I turn on JavaMail debug mode.</p>
  
  <p>Any ideas would be appreciated.</p>
  
  <p>Here is a snippet from the source message file in the POP3 mailbox:</p>
  
  <pre class="lang-none prettyprint-override"><code>Message-ID: &lt;1345995532.54860.YahooMailNeo@web111910.mail.gq1.yahoo.com&gt;
  Date: Sun, 26 Aug 2012 08:38:52 -0700
  From: Secure Comfort &lt;securecomforttransportation@ymail.com&gt;
  Reply-To: Secure Comfort &lt;securecomforttransportation@ymail.com&gt;
  Subject: Language &amp; Transportation Service 
  To: "xxxxxx@xxxxxx.com"
      &lt; xxxxxx @ xxxxxx.com&gt;
  In-Reply-To: &lt;1345995390.53486.YahooMailNeo@web111908.mail.gq1.yahoo.com&gt;
  MIME-Version: 1.0
  Content-Type: multipart/mixed;
      boundary="1816409020-1433069823-1345995533=:54860"
  Return-Path: securecomforttransportation@ymail.com
  X-OriginalArrivalTime: 26 Aug 2012 15:39:22.0287 (UTC) FILETIME=[F6D67BF0:01CD83A0]
  
  --1816409020-1433069823-1345995533=:54860
  Content-Type: multipart/alternative;
      boundary="1816409020-520494517-1345995533=:54860"
  
  --1816409020-520494517-1345995533=:54860
  Content-Type: text/plain; charset="iso-8859-1"
  Content-Transfer-Encoding: quoted-printable
  </code></pre>
  
  <p>Here are most of the getters for the MimeMessage:</p>
  
  <pre class="lang-none prettyprint-override"><code>Content ID=null
  Content Language=null
  Content MD5=null
  Content Type=text/plain
  Data Handler=javax.mail.internet.MimeBodyPart$MimePartDataHandler
  Description=null
  Disposition=null
  Encoding=null
  File Name=null
  Line Count=-1
  Message ID=&lt;1345995532.54860.YahooMailNeo@web111910.mail.gq1.yahoo.com&gt;
  Received Date=null
  Sent Date=Sun Aug 26 10:38:52 CDT 2012
  Size=7480850
  Subject=null
  </code></pre>