LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

run-mailcap

Open files using mailcap MIME type entries

TLDR

View a file using mailcap entry
$ run-mailcap --action=view [path/to/file]
copy
Edit a file using mailcap entry
$ run-mailcap --action=edit [path/to/file]
copy
Print a file using mailcap entry
$ run-mailcap --action=print [path/to/file]
copy
Cat a file to stdout using copiousoutput rules
$ run-mailcap --action=cat [path/to/file]
copy
Run with debug information
$ run-mailcap --action=view --debug [path/to/file]
copy
Display command without executing
$ run-mailcap --action=view --norun [path/to/file]
copy

SYNOPSIS

run-mailcap [--action=action] [--option[=value]] [MIME-TYPE:[ENCODING:]]FILE [...]

DESCRIPTION

run-mailcap executes programs via entries in the mailcap file based on MIME types. It selects appropriate handlers for viewing, editing, printing, or composing files.The mailcap database maps MIME types to applications, enabling automatic file handling based on content type. The commands see, edit, compose, and print are aliases that default to the view, edit, compose, and print actions respectively.

PARAMETERS

--action=action

Action to perform: view, cat, compose, composetyped, edit, print. The cat action uses only copiousoutput rules and sends output to stdout.
--debug
Display diagnostic output for troubleshooting
--nopager
Ignore copiousoutput directive and send output directly to stdout
--norun
Display the command that would be executed without running it

INSTALL

yay -S run-mailcap
copy

CAVEATS

Behavior depends on mailcap configuration. Some MIME types may not have configured handlers.

HISTORY

Part of mime-support package, providing MIME type handling utilities based on RFC 1524 mailcap specification.

SEE ALSO

see(1), edit(1), compose(1), print(1), xdg-open(1), file(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid