Neomutt
2021-03-20
Neomutt is an updated version of Mutt, a text based email client.
Configuration files
- Display filter
- List mailboxes
- Translate emails
- Smarten up emails before replying
- Printing emails in unicode
External applications
- txt2pdf Convert text to PDF with Unicode
- mbsync I use mbsync to download emails
- msmtp I use msmtp to send emails
- Chawan I use Chawan in mailcap to convert html emails
- GPG signature and encryption
- DeepL-cli for translating
- Translate Shell for translating
- Urlscan manage links in emails
- Notmuch Notmuch email system for searching (I don't use it)
- Imapfilter tool for filtering mail
Personal Notes
To enable verification of the GPG signature from the keyservers when reading an e-mail, make sure that the ~/.gnupg/gpg.conf file contains these lines:
keyserver hkps://hkps.pool.sks-keyservers.net
keyserver-options auto-key-retrieve
I use msmtp to send e-mails from my Arch linux laptop. In msmtprc,
tls_trust_file /etc/ssl/certs/ca-certificates.crt
doesn't work for me, instead I use
tls_fingerprint
To obtain the fingerprint :
msmtp --serverinfo --tls --tls-certcheck=off --host=host.domain.tld
--port=587 | egrep -o "([0-9A-Za-z]{2}:){31}[0-9A-Za-z]{2}"
I have a cron job that updates the fingerprint regularily.
#!/bin/bash
# update tls_fingerprint entry in ~/.msmtprc
cd $HOME
# get the server fingerprint
KEY=$(msmtp --serverinfo --tls --tls-certcheck=off --host=mail.domain.tld --port=587 | grep -E -o "([0-9A-Za-z]{2}:){31}[0-9A-Za-z]{2}")
# replace tls_fingerprint line in .msmtprc
sed -i "s/^tls_fingerprint.*/tls_fingerprint $KEY/g" .msmtprc
I use Chawan (cha) in my mailcap to convert html mail to text, otherwise xdg-desktop for the default applications (see mailcap above)