You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
It's my first time posting there, so please forgive for any mistake made.
I've recently encountered a weird error when I was doing search with Since date condition(that returned 0 messages as a result, which is incorrect in my case):
PHP Notice: Unknown: SEARCH Database is not full text indexed (errflg=2) in Unknown on line 0
It appears to be a system caused issue and was resolved by our admins.
However, I think it will be better if this library will gracefully catch and address all similar errors.
So, we could move error checking logic above like this
public function getMessages(ConditionInterface $search = null, int $sortCriteria = null, bool $descending = false, string $charset = null): MessageIteratorInterface
{
...
if (false !== ($error = \imap_last_error())) {
throw new InvalidSearchCriteriaException(\sprintf('Invalid search criteria [%s] - %s', $query, $error));
}
if (false === $messageNumbers) {
// imap_search can also return false
$messageNumbers = [];
}
return new MessageIterator($this->resource, $messageNumbers);
}
This way any unexpected error will be reported right away without producing imprecise results.
The text was updated successfully, but these errors were encountered:
Hi,
It's my first time posting there, so please forgive for any mistake made.
I've recently encountered a weird error when I was doing search with Since date condition(that returned 0 messages as a result, which is incorrect in my case):
PHP Notice: Unknown: SEARCH Database is not full text indexed (errflg=2) in Unknown on line 0
It appears to be a system caused issue and was resolved by our admins.
However, I think it will be better if this library will gracefully catch and address all similar errors.
So, we could move error checking logic above like this
This way any unexpected error will be reported right away without producing imprecise results.
The text was updated successfully, but these errors were encountered: