This commit is contained in:
Lynn Ochs 2019-05-12 17:26:57 +02:00
parent db2993a638
commit 24ad5099d8
Signed by: apo
GPG Key ID: 588AD47B1D06BE99

View File

@ -3,7 +3,7 @@
`mailcap-agent` can be used to use local commands to view files from a remote `mailcap-agent` can be used to use local commands to view files from a remote
host, e.g. when using ssh to read email. To use it, run host, e.g. when using ssh to read email. To use it, run
./mailcap-server.py ~/.mailcap.sock mailcap-server.py
on your local host, then add something like this to your `~/.ssh/config`: on your local host, then add something like this to your `~/.ssh/config`:
@ -13,8 +13,10 @@ on your local host, then add something like this to your `~/.ssh/config`:
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:
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. and try opening a file, either with some application that uses your mailcap
file or directly:
mailcap-client.py some_image.jpg image/jpeg