From 24ad5099d821059d3a4fd5a780c94668d5818a90 Mon Sep 17 00:00:00 2001 From: Valentin Ochs Date: Sun, 12 May 2019 17:26:57 +0200 Subject: [PATCH] Readme --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index de97705..058b6ed 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ `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 - ./mailcap-server.py ~/.mailcap.sock + mailcap-server.py 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 using mailcap-agent: - image/*;~/mailcap-client.py %s %t - application/pdf;~/mailcap-client.py %s %t + image/*;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