php imap check if email has attachment
问题 I'm trying to build a small webmail app. When I read all the emails in inbox I want to show for each mail if it has attachments. This works, but the problem is that it takes to long to do that, about 0.5 secs for 1Mb email attach. Multiply that with all emails in inbox that have big attach files :| My question is: How to check if an email has attach withouth loading the whole email ? Is that possible ? Bellow is the code I'm using now: function existAttachment($part) { if (isset($part->parts)