php-imap
php-imap copied to clipboard
Having an empty email (mail without content) breaks query pagination retrieval
Describe the bug I want to query an Inbox, but when some of the returned emails has no content the whole page retrieval breaks with a GetMessagesFailedException (with message "no content found"). Setting query->setFetchBody(false) does not seem to do anything in this case
Expected behavior The page results should be returned and no error should be thrown.
Hi @petarg , many thanks for your report.
Best regards,
Hi @petarg ,
please give v3.0.0-alpha a try. The default boundary regex used to detect the message parts in a multi-part message has been changed and can now also be modified via the config options.boundary parameter inside your configuration.
Best regards,