Sets or clears flags using imap_setflag_full or imap_clearflag_full.
Accepts an array of message ids in the $mids argument and an array of flags to set on those messages in the $flags argument. The $action argument may be one of set|clear and it's used to toggle between imap_setflag_full and imap_clearflag_full.
| param | array | $mids See above. |
| param | array | $flags See above. |
| param | str | $action (optional) See above. |
| return | bool | |
| throws | ErrorStack: Argument requires array. | Both the $mids argument and $flags argument must be arrays. |
| throws | ErrorStack: Invalid action. | The $action argument must be one of 'set' or 'clear'. |
| access | public | |
| see | imap_setflag_full imap_clearflag_full |
|