You're viewing a demo portfolio

Join the waitlist
PRSM

add_mail_rule

Active

Tool of run.domani/domani

declared in 1.0.0

Add an inbound filtering rule to a mailbox. If a message matches (by from/to/subject/body), the action runs: drop, mark_read, forward (to action_arg), webhook_only (skip forward-to), or label (with action_arg). Rules run in priority order (lower first); first match wins. API: POST /api/emails/{address}/rules.

Parameters schema

{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "domain",
    "slug",
    "match_field",
    "match_op",
    "match_value",
    "action"
  ],
  "properties": {
    "slug": {
      "type": "string",
      "description": "Mailbox slug"
    },
    "action": {
      "enum": [
        "drop",
        "mark_read",
        "forward",
        "webhook_only",
        "label"
      ],
      "type": "string",
      "description": "What to do on match"
    },
    "domain": {
      "type": "string",
      "description": "Mailbox domain"
    },
    "enabled": {
      "type": "boolean",
      "description": "Default true"
    },
    "match_op": {
      "enum": [
        "contains",
        "equals",
        "regex"
      ],
      "type": "string",
      "description": "How to match"
    },
    "priority": {
      "type": "integer",
      "maximum": 9007199254740991,
      "minimum": -9007199254740991,
      "description": "Lower runs first (default 0)"
    },
    "action_arg": {
      "type": "string",
      "description": "For 'forward': the destination email. For 'label': the label value."
    },
    "match_field": {
      "enum": [
        "from",
        "to",
        "subject",
        "body"
      ],
      "type": "string",
      "description": "Which field to match on"
    },
    "match_value": {
      "type": "string",
      "description": "The value/pattern to match"
    }
  }
}

What this tool wraps· 0 endpoints

min confidence0.700.50

No endpoints wrapped at confidence ≥ 0.70.

Parent server

run.domani/domani

https://github.com/gwendall/domani

1/7 registries
View full server →