title: Extracting PST file containing mail as an attachment of PSTMessage
body: <p>I'm trying to extract PST files using java-libpst-0.8.1 , following
  <a href="https://code.google.com/p/java-libpst/" rel="noreferrer">https://code.google.com/p/java-libpst/</a></p>
  
  <p>In my sample pst file, there are several mails. In one of the mail of that pst file, the attachment is also a mail. While parsing that <code>PSTMessage</code>, it's not able to fetch even, attachment's name. Please find the sample code.</p>
  
  <pre><code> PSTMessage email;
   PSTAttachment attach;
   email = (PSTMessage) folder.getNextChild();
   while (email != null) {
      try {
          numberOfAttachments = email.getNumberOfAttachments();
          if (numberOfAttachments &gt; 0) {
             for (int x = 0; x &lt; numberOfAttachments; x++) {
                 attach = email.getAttachment(x);
                 try {
                      attachmentName = attach.getLongFilename();
  </code></pre>
  
  <p>Though the program is giving the exact count of the mail's attachments. But it's not able to provide, the attached mail's name or extracting it's content. Can anyone suggest a way what should I do?</p>