Skip to content

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

Open
@gomcodoctor

Description

@gomcodoctor

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions