Count of particular mail attachment without downloading attachment - using Java
<p>Is it possible to get only the count of attachments for a mail in Java? I tried using this:</p>

<pre><code>DataHandler handler = message.getDataHandler();
AttachedFileName= handler.getName();
</code></pre>

<p>This lists out all the attachments for all mails inbox but not for specific mails.</p>

<p>Is this possible if so how?</p>

<p>Thanks!</p>
