From mboxrd@z Thu Jan 1 00:00:00 1970 From: johnbent@lanl.gov (John Bent) Date: Tue, 29 Jan 2008 12:59:01 -0700 Subject: [sup-talk] text/html => w3m? In-Reply-To: <1201635034-sup-9713@buckwheat> References: <1201635034-sup-9713@buckwheat> Message-ID: <1201636435-sup-5110@tangerine.lanl.gov> 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