Neomutt Quickstart
Contents
Introduction
NeoMutt is a command line mail reader, a fork of Mutt. It' versatile and highly configurable.
That is what it says on NeoMutt website, and the reason I decide to give it a try.
Installation
Base on Download page on NeoMutt website, it should be available on most distro repos.
|
|
Configuration
NeoMutt will try to load configuration on multiple location. I’m going to use the user default configuration location
~/.config/mutt/muttrc
which a legacy of Mutt.
|
|
The spoolfile is the folder where your (unfiltered) e-mail arrives. Most e-mail services conventionally name it INBOX
URL format in folder
adn smtp
$$
\underbrace{imaps}_{protocol}://\underbrace{account}_{login\ account}@\underbrace{mail.example.com}_{domain}:\underbrace{993}_{port}
$$
- protocol: Remove suffix
s
if mail server doesn’t support SSL. - account: Mail server may requires a full email address as an login account, if so, just replace account with it:
1
set folder = "imaps://[email protected]@mail.example.com:993"
- domain: Could be something like
smtp.example.com
imap.example.com
which should be provided by the mail service provider. - port: Same as domain
First run
With previous simple configuration, we can now launch NeoMutt. We shall see a Password prompt during the process, otherwise, see if any error message and double check the configuration file.
Now we enter Index Screen:
id | flag | sent date | sender | size | title |
---|---|---|---|---|---|
1 | + | Nov 16 | Klesh | ( 25) | Re: hello world |
Flags
* `N`: New email
* `!`: Important email (toggle by capital `F`)
* `r`: Email that has been forwarded or replied to
* `*`: Tagged email (toggle by `t`)
Theads ordering
Mail threads are ordered by date ascendingly, which is odd, at least to me… so I added following line to my configuration.
|
|
Note that NeoMutt need to be restarted for configuration to work.
IMAP user
Capital G
is the default key to fetch POP mails, for IMAP users we could rebind this key by putting following line
to the muttrc
|
|
Basic navigation
Press j
move to next mail thread, k
move to previous mail thread.
Press Enter
to read mail, pay attention to the top menu, uses Space
and -
keys to scroll up and down. q
returns
to Index view.
Cheatsheet
How to send mail:
- Press
m
on Index View - A prompt show appear on the bottom left corner showing ‘To:’, enter receipient email address and hit
Enter
- Enter mail title on ‘Subject:’ prompt.
- Now NeoMutt should invoke the EDITOR (which is the command set by Environment Variable
EDITOR
), key in the messages, save and quit - We are now back to NeoMutt, as the top menu suggested, press
y
to send out immediately. - Press
q
if your want to save draft, NeoMutt will ask if we want to recall the draft next time we pressm
How to reply mail:
- Highlight the mail thread we want to reply on Index View by press
j/k
or other ways… - Press
r
, the rest are same as sending mail
Author Klesh Wong
LastMod 2020-11-18