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.
Checking the return result of
imap2_setflag_full
will always yield the valuefalse
, 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.https://github.com/javanile/php-imap2/blob/f96973ecf0d2d5005ee607faa13b0a5f61745ad9/src/Message.php#L457-L459