title: IMAP - javax.mail. - Fetching Only Body Without Attachment
body: <p>I am trying to develop an IMAP email client using the javax.mail API. I have been able to contact the servers, fetch emails, attachments and other operations without any problem.</p>
  
  <p>However, we would not want to fetch the attachment until the user wants to view it explit in order to improve the performance. This would mean that we would need information  which would indicate if the email has an attachment, if yes, then the filename(s) and the size(s)but would <strong>not</strong> send me the actual content of the email. However, I was not able to find a method in the API description which would return just the multi-part content. </p>
  
  <p>Is there a way I could fetch just the body and the details of the attachment but not the actual attachment?</p>
  
  <p>Thanks,
  Aravind</p>