Improve readme
This commit is contained in:
parent
24ad5099d8
commit
49cd825383
10
README.md
10
README.md
|
@ -11,12 +11,18 @@ on your local host, then add something like this to your `~/.ssh/config`:
|
||||||
RemoteForward /home/remoteuser/.mailcap.sock /home/localuser/.mailcap.sock
|
RemoteForward /home/remoteuser/.mailcap.sock /home/localuser/.mailcap.sock
|
||||||
|
|
||||||
On the remote host, set up your `~/.mailcap`, e.g. to open all images and PDFs
|
On the remote host, set up your `~/.mailcap`, e.g. to open all images and PDFs
|
||||||
using mailcap-agent:
|
using mailcap-agent, use the following example. The `%t` in these invocations
|
||||||
|
is replaced with the type. It is optional, and the default is to run `file(1)`
|
||||||
|
on the file and get the type from that.
|
||||||
|
|
||||||
image/*;mailcap-client.py %s %t
|
image/*;mailcap-client.py %s %t
|
||||||
application/pdf;mailcap-client.py %s %t
|
application/pdf;mailcap-client.py %s %t
|
||||||
|
|
||||||
and try opening a file, either with some application that uses your mailcap
|
Now try opening a file, either with some application that uses your mailcap
|
||||||
file or directly:
|
file or directly:
|
||||||
|
|
||||||
mailcap-client.py some_image.jpg image/jpeg
|
mailcap-client.py some_image.jpg image/jpeg
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
mailcap-client.py invoice.pdf
|
||||||
|
|
Loading…
Reference in New Issue
Block a user