37 lines
1.0 KiB
Markdown
Raw Normal View History

# run-mailcap
> Execute programs via entries in the mailcap file.
> More information: <https://manned.org/run-mailcap>.
- Compose any existing file or new on default `mailcap` edit tool:
`run-mailcap --action=compose {{path/to/file}}`
- View any file on default `mailcap` explorer:
`run-mailcap --action=edit {{path/to/file}}`
- Print a file using the default `mailcap` print tool:
`run-mailcap --action=print {{path/to/file}}`
- View any file (usually image) on default `mailcap` explorer:
`run-mailcap --action=view {{path/to/file}}`
- Invoke individual actions/programs on run-mailcap:
`run-mailcap --action={{view|cat|compose|composetyped|edit|print}} {{path/to/file}}`
- Turn on extra information:
`run-mailcap --action={{action}} --debug {{path/to/file}}`
- Ignore any "copiousoutput" directive and forward output to `stdout`:
`run-mailcap --action={{action}} --nopager {{path/to/file}}`
- Display the found command without actually executing it:
`run-mailcap --action={{action}} --norun {{path/to/file}}`