From: johnbent@lanl.gov (John Bent)
Subject: [sup-talk] text/html => w3m?
Date: Tue, 29 Jan 2008 12:59:01 -0700 [thread overview]
Message-ID: <1201636435-sup-5110@tangerine.lanl.gov> (raw)
In-Reply-To: <1201635034-sup-9713@buckwheat>
Excerpts from Daniel Wagner's message of Tue Jan 29 12:33:48 -0700 2008:
> Hello, how does sup know to use w3m for text/html attachments? I had a
> quick grep -R through the code for w3m, and it suggested that this could
> be achieved with a user hook, but I have a completely empty
> ~/.sup/hooks. I also thought it might be from some mime-style magic,
> but
>
> ~% xdg-mime query default "text/html"
> firefox.desktop
>
> I'd really like for firefox to be the program used in fact, but I can't
> see where to change this.
>
You can use a hook 'mime-decode.rb' to cause text/html emails to be
correctly rendered within sup. For attachments, sup uses hook 'mime-view.rb'.
Since, your hook dir is empty (by the way, it is possible to set the home
dir for sup to something besides $HOME/.sup, so you might want to confirm
you're running from where you think you are), I believe sup uses
/usr/bin/run-mailcap if there is no 'mime-view.rb'.
Hope this helps but I'm still learning sup too so this might all be wrong...
By the way, I'd like that other request you had also about being able to
open links within email bodies.
John
next prev parent reply other threads:[~2008-01-29 19:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-29 19:33 Daniel Wagner
2008-01-29 19:59 ` John Bent [this message]
2008-01-29 21:45 ` Daniel Wagner
2008-01-30 3:52 ` William Morgan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1201636435-sup-5110@tangerine.lanl.gov \
--to=johnbent@lanl.gov \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox