I moved from having an open Gmail tab on my browser to use mutt. I simply want to give it a try because I love being on the terminal and the solarized theme.
In order to get everything setup I followded Steve Losh’s blog post so I’m not going to repeat everything that he already explained so well and in such detail. The few things I will cover in this post are related to the issues that I had while running through his tutorial and how I fixed them in case you are going through the same.
How I use email
My email setup is almost the same as Steve’s except for one thing. I do send mail from different addresses, this is because I have a personal account and one that I’m required to use at work.
- I have a gmail account where I forward everything from all my other
accounts but I never send email from this account.
- Even tough I never send email from that account I do keep a copy of my
sent files in it.
- My personal account from which I send email is email@example.com
- My work account from which I also send email is firstname.lastname@example.org
In order to make this work for me I added two macros to handle those accounts
from which I send mail.
macro index \e1 ":set email@example.com\n:set sendmail='/usr/local/bin/msmtp -a mauromorales' status_format=\"-%firstname.lastname@example.org: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---\"\n" "Switch to email@example.com"
macro index \e2 ":set firstname.lastname@example.org\n:set sendmail='/usr/local/bin/msmtp -a las' status_format=\"-%email@example.com: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---\"\n" "Switch to firstname.lastname@example.org"
All I have to do is do Esc 1 or Esc 2 to choose the address I want to send mail from
And because the email is not being sent from the mail gmail account I do
need to save a copy of the sent mails. All you need to do is to make sure
you have the following option in you .muttrc
Issues I encountered and how I solved them
ERROR: Server SSL fingerprint ‘keykeykey’ for hostname ‘example.com’ does not match configured fingerprint. > Please verify and set ‘cert_fingerprint’ accordingly if not set yet.
brew install curl-ca-bundle
And add the following to your .offlinemaprc
sslcacertfile = /usr/local/opt/curl-ca-bundle/share/ca-bundle.crt
Mutt’s sidebar was not working
I found out that mutt needs to be compiled with this option. There is already a pull request but it wasn’t accepted.
No worries, all you need to do is add the following code to Library/Formula/mutt.rb
Then re-install mutt with this option
brew install mutt --with-sidebar-patch
I get mail in Spanish, German and French and all of them have special characters. In order to make this work I just had to export the LANG variable in my .zshrc.
Photo Credit: LiveTheChaos via Compfight cc