Skip to content

leaveUnread seems to mark all messages as unread / removing the seen flag #33

Description

@SDCRoman

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions