First off, let's find out what Mutt is.
Plain-text emails are — just plain text (captain obvious). They are the email equivalent of an old-fashioned letter — no images, fancy fonts, or hyperlinks. They are not attractive, but they definitely come in handy.
That's how you do it, folks.
While most HTML-based emails have a chance of being marked as spam, a plain-text alternative is spam-filter-friendly (quick marketing hack?).
There are quite a few benefits of using plaintext. Gmail, Outlook, and most mail nowadays is HTML-based, but you can easily send a plain-text mail by changing the settings.
Most of us geeks, though, prefer a plain-text email client like Mutt. So let's get started with the installation. The following steps are for Ubuntu / Linux.
Image source: Linuxandubuntu.com
Step 1: Open the terminal
Press ctrl+alt+T to open the terminal (or in whatever way you want to).
Step 2: Installing Mutt
$ sudo apt-get update
$ sudo apt-get install mutt
Step 3: Configure Mutt
We need to configure Mutt to read and send emails from your address, and set up directories for cache and certificates. Let's start by creating them:
$ mkdir -p ~/.mutt/cache/headers
$ mkdir ~/.mutt/cache/bodies
$ touch ~/.mutt/certificates
$ touch ~/.mutt/muttrc
Now let's work on the configuration file:
$ vim ~/.mutt/muttrc
You can use gedit, Atom, or any other editor to open the file (but vim always comes in handy, and you should definitely install it if you don't have it already).
Add the following lines to the muttrc file, swapping in your own address and app password:
set from = "you@gmail.com"
set realname = "Your Name"
set imap_user = "you@gmail.com"
set imap_pass = "your-app-password"
set editor = "vim"
set smtp_authenticators = "login"
set ssl_starttls = yes
set ssl_force_tls = yes
set folder = "imaps://imap.gmail.com:993"
set spoolfile = "+INBOX"
set trash = "+[Google Mail]/Trash"
set smtp_url = "smtps://you@gmail.com@smtp.gmail.com:465/"
set smtp_pass = "your-app-password"
set header_cache = ~/.mutt/cache/headers
set message_cachedir = ~/.mutt/cache/bodies
set certificate_file = ~/.mutt/certificates
set move = no
set imap_keepalive = 900
set sort = reverse-threads
Save the file, launch mutt from the terminal, and you're up and running with a plain-text email client.