run-mailcap

Inherit

run-mailcap --action=view text/plain:/etc/hosts

The file must exist and be not empty.

run-mailcap --action=edit text/plain:/path/to/output-file