{
  "id": "msmtp",
  "name": "msmtp",
  "homepage": "https://marlam.de/msmtp/",
  "description": "SMTP client with sendmail compatible interface.",
  "executables": [
    "msmtp",
    "msmtpd"
  ],
  "dotfiles": {
    "paths": [
      "~/.msmtprc",
      "[configHome]/msmtp/config"
    ],
    "secret": [],
    "secret_paths": [
      {
        "file": [
          "~/.msmtprc",
          "[configHome]/msmtp/config"
        ],
        "match": {
          "prefix": [
            "password"
          ]
        }
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "Send mail",
    "description": "Send a message read from standard input through an SMTP account. TLS tuning, logging and queue modes are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "manual",
        "kind": "manual",
        "url": "https://marlam.de/msmtp/msmtp.html",
        "revision": "man page 2026-10",
        "evidence": "msmtp [option...] [--] recipient...\nmsmtp [option...] -t [--] [recipient...]\nmsmtp [option...] --serverinfo\n-P, --pretend\n-v, -d, --debug\n-S, --serverinfo\n-C, --file=filename\n-a, --account=account_name\n--host=hostname\n--port=number\n--tls[=(on|off)]\n-f, --from=address\n-t, --read-recipients\n--read-envelope-from\n"
      }
    ],
    "field": [
      {
        "id": "recipients",
        "label": "Recipients",
        "type": "string",
        "position": 0,
        "multiple": true,
        "sources": [
          "manual"
        ]
      },
      {
        "id": "account",
        "label": "Account",
        "type": "string",
        "option": [
          "--account",
          "-a"
        ],
        "sources": [
          "manual"
        ]
      },
      {
        "id": "from",
        "label": "Envelope from",
        "type": "string",
        "option": [
          "--from",
          "-f"
        ],
        "sources": [
          "manual"
        ]
      },
      {
        "id": "read_recipients",
        "label": "Read recipients from headers",
        "type": "boolean",
        "option": [
          "--read-recipients",
          "-t"
        ],
        "sources": [
          "manual"
        ]
      },
      {
        "id": "file",
        "label": "Config file",
        "type": "path",
        "option": [
          "--file",
          "-C"
        ],
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "manual"
        ]
      },
      {
        "id": "pretend",
        "label": "Pretend (print settings only)",
        "type": "boolean",
        "option": [
          "--pretend",
          "-P"
        ],
        "sources": [
          "manual"
        ]
      },
      {
        "id": "debug",
        "label": "Debug output",
        "type": "boolean",
        "option": [
          "--debug",
          "-d"
        ],
        "sources": [
          "manual"
        ]
      },
      {
        "id": "serverinfo",
        "label": "Show server info",
        "type": "boolean",
        "option": [
          "--serverinfo",
          "-S"
        ],
        "sources": [
          "manual"
        ]
      }
    ],
    "task": [
      {
        "id": "send",
        "label": "Send mail",
        "fields": [
          "account",
          "from",
          "recipients",
          "read_recipients"
        ],
        "required": [
          "account"
        ]
      },
      {
        "id": "server-info",
        "label": "Inspect SMTP server",
        "set": {
          "serverinfo": [
            true
          ]
        },
        "lock": [
          "serverinfo"
        ],
        "fields": [
          "account",
          "serverinfo",
          "file"
        ],
        "required": [
          "account"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "account",
          "from",
          "recipients",
          "read_recipients"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "file",
          "pretend",
          "debug",
          "serverinfo"
        ]
      }
    ]
  }
}
