Mutt tutorial part 4 - html mails, address book and other useful features
How mutt can handle mails in html format ? Takling about html mail handling is
talking about handling any type of Multipurpose Internet Mail Extensions.
Mutt supports handling for all MIME types in one place for all programs. This
place is .mailcap file. Googling a little bit I found below mailcap file
configuration (kudos to Bart Nagel).
Of course we need to install all applications to make mailcap work correct:
sudo apt-get install pandoc lynx w3m html2text
To bring address book functionality to mutt we need abook application:
sudo apt-get install abook
Also few new line in $HOME/.muttrc will be needed:
# add alias file for addressessetalias_file=~/.mutt/alias source ~/.mutt/alias
# configure addressbooksetquery_command="abook --mutt-query '%s'"
macro index,pager A "<pipe-message>
abook --add-email-quiet<return>""add the sender address to abook"
Adding new address simply create entry in alias file. During adding new alias
abook asks about alias name, e-mail address, personal name and confirmation for
given data. Some this fields could be filled automatically by interaction
between abook and mutt. Of course file $HOME/.mutt/alias have to exist before
touch $HOME/.mutt/alias To access saved aliases simply click button in
cc, to or bcc filed. There is few more options that I found useful. To find it
please go to my workspace scripts at
github. Also if you have any issues with the configuration or comments please
let me know by commenting below the post.
Founder and Embedded Systems Consultant at 3mdeb as well as freelance CTO of Vitro Technology and CEO of LPN Plant. Passionate about building firmware that enables advanced hardware features in modern products. Dedicated to customers that treat embedded software security and upgradeability as forethought. Open source firmware evangelist interested in platform security and trusted computing. In favor of fixed price projects with a clear definition of success.