Browse Source

run-mailcup: run-mailcup, compose, edit, print, see commands (thanks to @flouthoc)

Igor Shubovych 9 years ago
parent
commit
027402e8e7
5 changed files with 72 additions and 0 deletions
  1. 12 0
      pages/linux/compose.md
  2. 12 0
      pages/linux/edit.md
  3. 12 0
      pages/linux/print.md
  4. 24 0
      pages/linux/run-mailcap.md
  5. 12 0
      pages/linux/see.md

+ 12 - 0
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}}`

+ 12 - 0
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}}`

+ 12 - 0
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}}`

+ 24 - 0
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}}`

+ 12 - 0
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}}`