I have recently updated the package from v1.4 -> v.2.2
In v1.4 I had this code to get mailbox folder messages:
$oClient->getFolder($_folder)->setFetchFlags(true)->setFetchBody(true)->leaveUnread()
->limit($messages_per_page, $highest_page)->get();
I have updated the syntax for v2
$oClient->getFolder($_folder)->query()->whereAll()->setFetchFlags(true)->setFetchBody(true)->leaveUnread()
->limit($messages_per_page, $highest_page)->get();
The problem is, that this now marks all messages as unread. It seems to remove the seen flag. For example: If I have 3 unseen messages and 7 seen messages in the INBOX folder and the above code is executed I will have 10 unseen messages.
I have recently updated the package from v1.4 -> v.2.2
In v1.4 I had this code to get mailbox folder messages:
I have updated the syntax for v2
The problem is, that this now marks all messages as unread. It seems to remove the seen flag. For example: If I have 3 unseen messages and 7 seen messages in the INBOX folder and the above code is executed I will have 10 unseen messages.