DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 6th May 2016
frcc frcc is offline
Don't Worry Be Happy!
 
Join Date: Jul 2011
Location: hot,dry,dusty,rainy,windy,straight winds, tornado,puts the fear of God in you-Texas
Posts: 335
Default Display html from Mutt to links -g

Hello Everyone, Finally getting around to using OpenBSD on my
desktop. (been running on my servers for a few yrs now)
Installed 5.9, links, mutt, getmail, XFCE4 and was wondering how to get mutt to display html attachments using links -g or firefox. Have been reading some posts here but they may be
affected by age and os version.
Do I create an entry in ~/.mailcap, ~/.muttrc, /etc/mutt/Muttrc or ??????
and what sort of an entry would I need to accomplish this?

As usual thanks in advance........

Last edited by frcc; 6th May 2016 at 09:30 PM.
Reply With Quote
  #2   (View Single Post)  
Old 6th May 2016
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
ISO Quartermaster
 
Join Date: Apr 2008
Location: NYC
Posts: 653
Default

I have a bit on this on my mutt page. There are a few ways. You can use a perl script so that if you're running mutt in a terminal, while X is running, you can put a line in .Xdefaults, and with a keystroke, highlight the link, then open a browser of choice with an enter key.
There's another way where you can set up entries in mailcap, which I got from someone's blog post. Anyway, I cover various ways to do it at https://srobb.net/mutt.html#HTML
Reply With Quote
  #3   (View Single Post)  
Old 6th May 2016
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
ISO Quartermaster
 
Join Date: Apr 2008
Location: NYC
Posts: 653
Default

Rereading your post, it seems that you want graphical display. In that case, the two possibilities are the one I mention that begins with the blog post, or else the one using the perl scripts.
Reply With Quote
  #4   (View Single Post)  
Old 6th May 2016
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,507
Default

Quote:
Do I create an entry in ~/.mailcap, ~/.muttrc, /etc/mutt/Muttrc or ??????
Mutt is highly flexible and you can specify your default mailcap and your default muttrc.
Code:
mutt -F /directory/muttrc
will tell mutt to open using the specified configuration file. If none is specified mutt will look for ~/.muttrc if present. Otherwise the system wide default is used.

In the same manner, you can specify the default mailcap in your mutt configuration file.

I centralized all my configuration files to ease backup
Code:
PooBear$ pwd
/home/jsh/.config
PooBear$ ls mutt
certificates colors       colors_bu    mailcap      muttrc
It is also possible to set your default html viewer to be text based for speed and security. When you really need to look at the graphical rendering of html code, you can display the list of attachments and open attachement with your specified graphical browser. The order of html viewers in the mailcap is important, the last entry is the default.

My mailcap
Code:
PooBear$ pwd
/home/jsh/.config/mutt
PooBear$ cat mailcap
# $Id$
#text/html; xombrero %s; test=test -n "$DISPLAY"; nametemplate=%s.html
text/html; firefox-esr %s; test=test -n "$DISPLAY"; nametemplate=%s.html
text/html; w3m -I %{charset} -T text/html -dump; copiousoutput
text/plain; less %s
application/msword; lowriter %s; test RunningX
application/vnd.openxmlformats-officedocument.wordprocessingml.document;lowriter %s
application/vnd.ms-excel; libreoffice %s; copiousoutput
application/excel; libreoffice %s; copiousoutput
application/vnd.ms-excel; libreoffice %s; copiousoutput
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; libreoffice '%s'; description="Office Open XML Spreadsheet"; nametemplate=%s.xlsx

application/pdf; xpdf -q %s
application/acrobat: xpdf %s
image/*; feh %s
application/pgp-keys; pgp -f < %s ; copiousoutput

Last edited by shep; 6th May 2016 at 10:44 PM.
Reply With Quote
  #5   (View Single Post)  
Old 7th May 2016
frcc frcc is offline
Don't Worry Be Happy!
 
Join Date: Jul 2011
Location: hot,dry,dusty,rainy,windy,straight winds, tornado,puts the fear of God in you-Texas
Posts: 335
Smile Mutt Colors & Browser Interaction

Thanks for the replies!

Looks like this old Dell is somewhat dated as it suffers speed loss when using graphical intensive applications (XFCE4 Firefox etc).

So, for now will simply try 5.9 with and without X (removed XFCE4)as the speed of getmail, mutt, links, links-g, .abook, calcurse, .when, feh etc meet my current needs.

Until this machine is upgraded. "lipstick on the pig will have to wait".

Opinion: Hard to beat simple and fast and OpenBSD!

Last edited by frcc; 7th May 2016 at 11:19 PM.
Reply With Quote
  #6   (View Single Post)  
Old 8th May 2016
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,507
Default

I migrated from Xfce4 to a lightweight desktop. I have been tweaking the lightweight desktop for years and have it to the point where I prefer it even on my faster hardware. I put the configuration files into a howto in the forums.

On my own system I use most of the applications you list: mutt, abook, calcurse feh. I added nmh, xpdf, gv and Netsurf. w3m is a nmh dependency so I use the w3m--image .similiar to links -g, rather than have redundant text browsers.

If you are interested expanding on simple/fast, PM me. I can share some of the configuration files.
Reply With Quote
  #7   (View Single Post)  
Old 8th May 2016
frcc frcc is offline
Don't Worry Be Happy!
 
Join Date: Jul 2011
Location: hot,dry,dusty,rainy,windy,straight winds, tornado,puts the fear of God in you-Texas
Posts: 335
Default

Ditto
Great! Would like to hear your thoughts and read what you have.

Finally moved to OpenBSD desktop trying to get things running somewhat similiar to what i had running in "lubuntu"

More I use the base system the more i like the simplicity and speed.

Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
phpMyAdmin 4.0 moves on from HTML frames J65nko News 0 8th May 2013 09:42 PM
newbie Q .. all man pages in html form daemonfowl OpenBSD General 5 18th July 2012 03:02 AM
how to copy every mail as html in different directory? bgobs FreeBSD General 1 4th August 2008 11:31 AM


All times are GMT. The time now is 11:01 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick