Sets or clears a given flag for a list of messages.
public flag ( array $add = [], array $remove = [], array $opts = [] ) : boolean | ||
$add | array | A list of IMAP flag(s) to add. |
$remove | array | A list of IMAP flag(s) to remove. |
$opts | array | Additional options:
- silent: (boolean) Don't output notification messages. DEFAULT: false - unchangedsince: (array) The unchangedsince value to pass to the IMAP store command. Keys are mailbox names, values are the unchangedsince values to use for that mailbox. DEFAULT: array() |
return | boolean | True if successful, false if not. |