javanile / php-imap2

PHP IMAP with OAUTH2
https://php-imap2.javanile.org/
GNU General Public License v3.0
48 stars 28 forks source link

imap2_setflag_full always returns false #21

Open tnaumann-wecg opened 1 year ago

tnaumann-wecg commented 1 year ago

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.

https://github.com/javanile/php-imap2/blob/f96973ecf0d2d5005ee607faa13b0a5f61745ad9/src/Message.php#L457-L459