2025-03-14 21:59:59 -06:00
|
|
|
# run-mailcap
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
> Execute programs via entries in the mailcap file.
|
2025-03-14 21:59:59 -06:00
|
|
|
> More information: <https://manned.org/run-mailcap>.
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
- 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}}`
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
- Invoke individual actions/programs on run-mailcap:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`run-mailcap --action={{view|cat|compose|composetyped|edit|print}} {{path/to/file}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Turn on extra information:
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`run-mailcap --action={{action}} --debug {{path/to/file}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Ignore any "copiousoutput" directive and forward output to `stdout`:
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`run-mailcap --action={{action}} --nopager {{path/to/file}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display the found command without actually executing it:
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`run-mailcap --action={{action}} --norun {{path/to/file}}`
|