Fastmail icon

Fastmail

Actions for Fastmail messages, labels, drafts and threads

Message → Mark a Message as Spam

AI-generated

Summary

Marks the specified Fastmail message as spam by setting its $junk keyword and clearing $notjunk. Processes each input item and returns an action result for its message ID.

Inputs

  • Message ID (required) — Fastmail message ID to mark as spam.
  • Fetch Options → Debug — When enabled, adds the raw JMAP response and before-and-after snapshots of the message’s mailbox IDs and keywords. Other Fetch Options are not used by this operation.

Output shape

One item per input item, containing a JSON result with action, messageId, successful, updated, and notUpdated fields.

A failed JMAP update raises an error; with Continue On Fail enabled, the corresponding output item contains an error field instead. Debug mode adds a debug object.

Links

Discussion