JMAP icon

JMAP

Interact with JMAP email servers (Apache James, Twake Mail, etc.)

Email → Remove Label

AI-generated

Summary

Remove a specified label (mailbox) from an email by its ID using the JMAP API.

Inputs

  • Authentication — Choose the authentication method to connect to the JMAP server: OAuth2, Basic Auth, or Bearer Token.
  • Email ID (required) — The unique ID of the email from which to remove the label.
  • Label (required) — The ID of the label (mailbox) to remove from the email, selected from the list of mailboxes available in the account.

Output shape

a single record containing the JMAP Email/set response object confirming the update to the email's mailbox labels.

The operation updates the email's mailboxIds field to remove the selected label and returns the JMAP response for the Email/set method call. Errors are thrown if the label removal fails.

Examples

Example 1: Remove the "Important" label from a specified email

Set Authentication as needed, provide the email's ID and select the label 'Important' to remove it from the email's labels.

Links

Discussion