javanile / php-imap2

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

imap2_setflag_full always returns false #21

Open tnaumann-wecg opened 2 years ago

tnaumann-wecg commented 2 years 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