create_email_rule
Create a mailbox rule for incoming mail. Match on any of: sender_contains (from), to_contains (recipient), subject_contains — each a list; mail matching any value in a list matches. Then: folder = a folder/label name or id to move it into (created if the name is new), and/or mark_read=true to mark it read (false leaves it unread). apply_now=true also applies it to existing mail (Gmail only; Outlook rules affect new mail). Confirm the rule with the user before creating it. Optional provider/account.
Parameters
- name (string, default "")
- folder (string)
- sender_contains (array)
- to_contains (array)
- subject_contains (array)
- mark_read (boolean, default false)
- apply_now (boolean, default false)
- destination_folder_id (string)
- provider (string)
- account (string)