I was testing to download attachments sent to mail address and while accessing the attachment info using hasAttachments() method, it returns true but while loggin attachmentCount(), it returns 0 and looping over attachments doesn't work as it cannot find attachments. For testing, I have sent the mails to myself, which contains multiple types of attachments but the results are the same. How can I able to resolve it?