[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
using conkeror from WL to open HTML mail
- To: wl-en <wl-en@ml.gentei.org>
- Subject: using conkeror from WL to open HTML mail
- From: Ramon Diaz-Uriarte <rdiaz02@gmail.com>
- Date: Sat, 08 Oct 2011 10:41:34 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:message-id:from:to:subject:user-agent:mime-version :content-type:content-transfer-encoding; bh=6IHx0pwy/5/AGEOGhXM80U5foKRPnqWM3HjZlr9r9ys=; b=oxyfY52ENkK+6wX39BtIeEJysGzBmkm3IIL9c/apdVl6ZmwTsHN6F0ISYCqus9buAz kZugaU2QsqeL+3Zz7PZzO5/5s4TmLy4j4GmyWZG02UMEh6hp6Bh9FaeqPv7dVE9vb/YF zZcoysDdgRsB8bv6MU/lcBbrYy8RQrmGUGoog=
- List-help: <mailto:wl-en-ctl@ml.gentei.org?body=help>
- List-id: wl-en.ml.gentei.org
- List-owner: <mailto:wl-en-admin@ml.gentei.org>
- List-post: <mailto:wl-en@ml.gentei.org>
- List-software: fml [fml 4.0 STABLE (20040215/4.0.4_BETA)]
- List-unsubscribe: <mailto:wl-en-ctl@ml.gentei.org?body=unsubscribe>
- Reply-to: wl-en@ml.gentei.org
- User-agent: SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/23.3 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)
Dear All,
I would like to open HTML formatted email using conkeror. This is what I
have tried to do:
1. In ~/.mailcap I have the line:
text/html; /home/ramon/bin/conkeror-file %s
2. "conkeror-file" is the following script, that makes appropriate
additions and substitutions so that conkeror will open a file:
*********
#!/bin/bash
# use conkeror to open a file
## a rip off from xdg-open
if (echo "$1" | grep -q '^file://' ||
! echo "$1" | egrep -q '^[a-zA-Z+\.\-]+:')
then
file="$(echo "$1" | sed 's%^file://%%')"
# handle relative paths
if ! echo "$file" | grep -q '^/'; then
file="$(pwd)/$file"
fi
conkeror "$file"
fi
*********
I use that script from the shell, and it does work without problem.
However, whenever I try to use this setup from WL, conkeror fails, saying
that the file does not exist. For instance, with a message such as "The
file /tmp/EMI3125967N/Estudio cannot be found. Please check the location
and try again."
In fact, that location does not exist. When using conkeror, for some
reason, the /tmp/whatever is not created.
However, if I use, say, google-chrome or firefox, things do work.
And, if I use conkeror-file with the file opened in, say, firefox, it does
work too.
This puzzles me because I thought it was WL the one who is responsible for
creating the tmp file, but maybe this is not the case? Anyway, what am I
doing wrong?
Thanks,
R.
--
Ramon Diaz-Uriarte
Department of Biochemistry
Universidad Autónoma de Madrid
Spain
http://ligarto.org/rdiaz
Temporarily at:
Structural Biology and Biocomputing Programme
Spanish National Cancer Centre (CNIO)
Phone: +34-91-732-8000 ext. 3019
Fax: +-34-91-224-6972