php-imap icon indicating copy to clipboard operation
php-imap copied to clipboard

Having an empty email (mail without content) breaks query pagination retrieval

Open petarg opened this issue 4 years ago • 2 comments

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.

petarg avatar Oct 03 '21 15:10 petarg

Hi @petarg , many thanks for your report.

Best regards,

Webklex avatar Oct 21 '21 00:10 Webklex

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,

Webklex avatar Nov 04 '21 16:11 Webklex