Skip to content

imap2_setflag_full always returns false #21

Open
@tnaumann-wecg

Description

@tnaumann-wecg

Checking the return result of imap2_setflag_full will always yield the value false, even if the operation was performed successfully.

I tool a quick look and saw that Message::setFlagFull is hardcoded to always return false.
Instead the result of the clients flag call should be returned.

php-imap2/src/Message.php

Lines 457 to 459 in f96973e

$client->flag($imap->getMailboxName(), $sequence, strtoupper(substr($flag, 1)));
return false;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions