Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getUnreadMessages($read = true) always marked as unseen #228

Open
gomcodoctor opened this issue Oct 24, 2018 · 0 comments
Open

getUnreadMessages($read = true) always marked as unseen #228

gomcodoctor opened this issue Oct 24, 2018 · 0 comments

Comments

@gomcodoctor
Copy link

gomcodoctor commented Oct 24, 2018

getUnreadMessages($read = true)

$read = true will not work because

protected function imapFetchbody($section)
    {
        /*
     * Update note: We must add FT_PEEK to perserve the unread status of the email.
     * Documentation of this can see seen here: http://php.net/manual/en/function.imap-fetchbody.php under options
     */
        return imap_fetchbody($this->imapStream, $this->id, $section, FT_PEEK );
    }

FT_PEEK is set, which will always mark message as unseen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant