diff --git a/pages/linux/compose.md b/pages/linux/compose.md new file mode 100644 index 0000000000..84e02d54ca --- /dev/null +++ b/pages/linux/compose.md @@ -0,0 +1,12 @@ +# compose + +> An alias to a `run-mailcap`'s action compose. +> Originally `run-mailcap` is used to mime-type/file. + +- Compose action can be used to compose any existing file or new on default mailcap edit tool: + +`compose {{filename}}` + +- With `run-mailcap`: + +`run-mailcap --action=compose {{filename}}` diff --git a/pages/linux/edit.md b/pages/linux/edit.md new file mode 100644 index 0000000000..2b62046770 --- /dev/null +++ b/pages/linux/edit.md @@ -0,0 +1,12 @@ +# edit + +> An alias to a `run-mailcap`'s action edit. +> Originally `run-mailcap` is used to process/edit mime-type/file. + +- Edit action can be used to view any file on default mailcap explorer: + +`edit {{filename}}` + +- With `run-mailcap`: + +`run-mailcap --action=edit {{filename}}` diff --git a/pages/linux/print.md b/pages/linux/print.md new file mode 100644 index 0000000000..03088430cd --- /dev/null +++ b/pages/linux/print.md @@ -0,0 +1,12 @@ +# print + +> An alias to a `run-mailcap`'s action print. +> Originally `run-mailcap` is used to process mime-type/file. + +- Print action can be used to print any file on default run-mailcap tool: + +`print {{filename}}` + +- With `run-mailcap`: + +`run-mailcap --action=print {{filename}}` diff --git a/pages/linux/run-mailcap.md b/pages/linux/run-mailcap.md new file mode 100644 index 0000000000..76dbfe32d5 --- /dev/null +++ b/pages/linux/run-mailcap.md @@ -0,0 +1,24 @@ +# run-mailcap + +> Run MailCap Programs. +> Run mailcap view, see, edit, compose, print - execute programs via entries in the mailcap file (or any of its aliases) will use the given action to process each mime-type/file. + +- Individual actions/programs on run-mailcap can be invoked with action flag: + +`run-mailcap --action=ACTION [--option[=value]]` + +- In simple language: + +`run-mailcap --action=ACTION {{filename}}` + +- Turn on extra information: + +`run-mailcap --action=ACTION --debug {{filename}}` + +- Ignore any "copiousoutput" directive and forward output to STD‐OUT: + +`run-mailcap --action=ACTION --nopager {{filename}}` + +- Display the found command without actually executing it: + +`run-mailcap --action=ACTION --norun {{filename}}` diff --git a/pages/linux/see.md b/pages/linux/see.md new file mode 100644 index 0000000000..c9ba69dbb5 --- /dev/null +++ b/pages/linux/see.md @@ -0,0 +1,12 @@ +# see + +> Alias to `run-mailcap`'s view. +> An alias to a `run-mailcap`'s action print. + +- See action can be used to view any file (usually image) on default mailcap explorer: + +`see {{filename}}` + +- Using with `run-mailcap`: + +`run-mailcap --action=view {{filename}}`