Linux "edit" Command Line Options and Examples
execute programs via entries in the mailcap file

run-mailcap (or any of its aliases) will use the given action to process each mime-type/file in turn. Each file is specified as its mime-type, its encoding (e.g.


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

Command Line Options:

Performs the specified action on the files. Valid actions are view, cat (uses only "copiousoutput" rules and sends output toSTDOUT) , compose, composetyped, edit and print. If no action is specified, the action will be determined by how the programwas called.
edit --action ...
Turns on extra information to find out what is happening.
edit --debug ...
Ignores any "copiousoutput" directive and sends output to STDOUT.
edit --nopager ...
Displays the found command without actually executing it.SECURITYA temporary copy of the file is opened if the file name matches the Perl regular expresssion "[^[:alnum:],.:/@%^+=_-]", in order toprotect from the injection of shell commands, and to make sure that the name can always be displayed in the current locale. In addi‐tion, the file is opened using its absolute path to prevent the injection of command-line arguments, for instance using file namesstarting with dashes.
edit --norun ...