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
I 'm trying to fetch flagged mails from a specified folder.
I tried:
$folder->query()->not()->unflagged()->setFetchBody(false)->leaveUnread()->get();
$folder->query()->not()->where([["UNFLAGGED"]])->leaveUnread()->get();
And some other I don't have now.
It throws me this reponse:
Too few arguments to function Webklex\PHPIMAP\Query\WhereQuery::where(), 0 passed and at least 1 expected
This throws me:
Webklex \PHPIMAP\ Exceptions\ImapServerErrorException
I also tried:
$aMessage = $folder->query()->seen()->setFetchBody(false)->leaveUnread()->get();
$aMessage = $folder->query()->unseen()->setFetchBody(false)->leaveUnread()->get();
$aMessage = $folder->query()->unflagged()->setFetchBody(false)->leaveUnread()->get();
$aMessage = $folder->query()->whereAll()->setFetchBody(false)->leaveUnread()->get();
And they work perfectly.
Any ideas why I can not retrive flagged messages or where is my error?
Thanks in advance.
Oriol
PS: I also opened the same question on php-imap, but i didn't had any responses for more than a week, so i am trying here. Sorry if this is not the correct way
The text was updated successfully, but these errors were encountered:
Hello,
I 'm trying to fetch flagged mails from a specified folder.
I tried:
$folder->query()->not()->unflagged()->setFetchBody(false)->leaveUnread()->get();
$folder->query()->not()->where([["UNFLAGGED"]])->leaveUnread()->get();
And some other I don't have now.
It throws me this reponse:
Too few arguments to function Webklex\PHPIMAP\Query\WhereQuery::where(), 0 passed and at least 1 expected
Also tried:
This throws me:
Webklex \PHPIMAP\ Exceptions\ImapServerErrorException
I also tried:
$aMessage = $folder->query()->seen()->setFetchBody(false)->leaveUnread()->get();
$aMessage = $folder->query()->unseen()->setFetchBody(false)->leaveUnread()->get();
$aMessage = $folder->query()->unflagged()->setFetchBody(false)->leaveUnread()->get();
$aMessage = $folder->query()->whereAll()->setFetchBody(false)->leaveUnread()->get();
And they work perfectly.
Any ideas why I can not retrive flagged messages or where is my error?
Thanks in advance.
Oriol
PS: I also opened the same question on php-imap, but i didn't had any responses for more than a week, so i am trying here. Sorry if this is not the correct way
The text was updated successfully, but these errors were encountered: