php-imap
php-imap copied to clipboard
[Feature Request] Add bool return to setFlag(), markMailAsRead(), etc.
Is your feature request related to a problem? Please describe.
setFlag() and its invokers like markMailAsRead() return void at the moment, can they instead return a bool?
Question is if it is necessary because when there is something wrong when you try set or clear the flag, you receive UnexpectedValueException
Thanks for the reply. Saw that, however writing try/catch blocks is IMO quite cumbersome to implement, versus return values.
I do understand that it is a style difference, not right/wrong.