{
  "id": "mutt",
  "name": "Mutt",
  "homepage": "https://mutt.org/",
  "description": "A small but very powerful text-based mail client.",
  "executables": [
    "mutt"
  ],
  "dotfiles": {
    "paths": [],
    "exclude": [],
    "secret": [
      "~/.muttrc",
      "~/.mutt/muttrc",
      "[configHome]/mutt/muttrc"
    ],
    "side_effect": false
  },
  "commands": {
    "format": 1,
    "label": "Mutt",
    "description": "Compose a message or open a mailbox. Attachments (-a, which needs a trailing --), debug logging and alias or config queries are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": false,
      "short_bundles": false
    },
    "source": [
      {
        "id": "man",
        "kind": "manual",
        "url": "https://manpages.debian.org/unstable/mutt/mutt.1.en.html",
        "evidence": "-b bcc-addr\n-c cc-addr\n-e command\n-f mailbox\n-F rcfile\n-H draft\n-i include\n-n\n-R\n-s subject\n-y\nSpecify a blind carbon copy (BCC) address.\nSpecify a carbon copy (CC) address.\nSpecify a configuration command to be run after processing of initialization files.\nSpecify a mailbox to load.\nUse rcfile instead of the user configuration file.\nSpecify a draft file which contains header and body to use to send a message.\nSpecify an include file to be inserted into the body of a message.\nDo not read the system-wide Muttrc configuration file.\nOpen a mailbox in read-only mode.\nSpecify the subject of the message. Must be enclosed in quotes if it contains spaces.\nStart Mutt with a listing of all mailboxes specified by the mailboxes configuration command.\n"
      }
    ],
    "field": [
      {
        "id": "to",
        "label": "Recipients",
        "description": "Addresses to send to. Leave empty when opening a mailbox.",
        "type": "string",
        "position": 0,
        "multiple": true,
        "sources": [
          "man"
        ]
      },
      {
        "id": "subject",
        "label": "Subject",
        "type": "string",
        "option": [
          "-s"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "cc",
        "label": "Cc address",
        "type": "string",
        "option": [
          "-c"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "bcc",
        "label": "Bcc address",
        "type": "string",
        "option": [
          "-b"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "include",
        "label": "Include file in body",
        "type": "path",
        "option": [
          "-i"
        ],
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "man"
        ]
      },
      {
        "id": "draft",
        "label": "Draft file",
        "type": "path",
        "option": [
          "-H"
        ],
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "man"
        ]
      },
      {
        "id": "mailbox",
        "label": "Mailbox to open",
        "type": "path",
        "option": [
          "-f"
        ],
        "path": {
          "kind": "any",
          "role": "input"
        },
        "sources": [
          "man"
        ]
      },
      {
        "id": "read_only",
        "label": "Open read-only",
        "type": "boolean",
        "option": [
          "-R"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "rcfile",
        "label": "Config file",
        "type": "path",
        "option": [
          "-F"
        ],
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "man"
        ]
      },
      {
        "id": "no_system_rc",
        "label": "Skip system-wide Muttrc",
        "type": "boolean",
        "option": [
          "-n"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "config_command",
        "label": "Extra config command",
        "type": "string",
        "option": [
          "-e"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "mailbox_list",
        "label": "Start at mailbox list",
        "type": "boolean",
        "option": [
          "-y"
        ],
        "sources": [
          "man"
        ]
      }
    ],
    "task": [
      {
        "id": "compose",
        "label": "Compose a message",
        "fields": [
          "to",
          "subject",
          "cc",
          "bcc",
          "include"
        ],
        "required": [
          "to"
        ]
      },
      {
        "id": "open",
        "label": "Open a mailbox read-only",
        "fields": [
          "mailbox",
          "read_only"
        ],
        "required": [
          "mailbox"
        ],
        "set": {
          "read_only": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "to",
          "subject",
          "cc",
          "bcc",
          "include",
          "mailbox",
          "read_only"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "draft",
          "rcfile",
          "no_system_rc",
          "config_command",
          "mailbox_list"
        ]
      }
    ]
  }
}
