Email → Set Flags
AI-generatedSummary
Adds or removes the \Flagged flag on a Proton email identified by its UID. Choose the account from item metadata or provide a configured account label; the operation returns the input items with a flag result added to each item.
Inputs
- Account Source — Choose
From Item Metadatato use the account key inprotonHydroxide.accountKeyoraccountKeyon the input item, orManual Labelto select an account by its configured label. - Account Label (required) — Required when Account Source is
Manual Label; matched to a configured account label without regard to case or surrounding whitespace. - Mailbox — Mailbox containing the email. Defaults to
protonHydroxide.mailbox, thenmailbox, from the input item, orINBOX. - Email UID (required) — Positive integer UID of the email. Defaults to
attributes.uid, thenuid, from the input item. - Flagged — When enabled (default), adds
\Flagged; when disabled, removes it.
Output shape
Returns the input items, with one result object added to each item's JSON as protonHydroxideFlagResult.
Each result includes
accountLabel,accountEmail,mailbox,uid, andflagged. Invalid UIDs, unresolved accounts, missing configured accounts, or unsupported flag removal cause an error.