LARBS/content/neomutt.md
2023-01-19 20:11:26 -05:00

3.3 KiB

title date
Neomutt 2023-01-16T16:15:58-05:00

Neomutt is a fast terminal-based email client.

{{< img src="/pix/neomutt.png" class=normal >}}

Setup with Mutt Wizard

Use mutt-wizard (mw) to add mail accounts. This is already installed on LARBS. Added accounts will be accessible from neomutt. To add your first account, just run the following:

mw -a your@email.com

Once you have installed accounts, sync them with the command mailsync, or by pressing super + F8.

Running

Press super + e or type neomutt manually in the terminal.

Bindings

Note also that neomutt automatically documents itself: you can press ? at any time in the program and you will see a list of all shortcuts for the screen you are on.

In the mail index...

  • j, k -- move up and down in mail.
  • l or enter -- open mail, or return to index.
  • h or esc -- return from mail to index.
  • m -- compose new mail.
  • r -- reply to selected mail.
  • R -- reply all to selected mail.
  • ctrl-j/ctrl-k -- move up or down in the sidebar.
  • ctrl-o -- open the box highlighted in the sidebar.
  • space -- select mail. (See below).

mutt-wizard automatically sets automatic binds to move to or move mail to other boxes. Press one of these keys:

  • g -- go to...
  • M -- move selected mail to...
  • C -- copy selected mail to...

And then follow it with one of these keys:

  • i -- ...the inbox.
  • d -- ...drafts.
  • s -- ...the sent box.
  • a -- ...the archive.
  • j -- ...junk.

With mail open...

Some binds above are shared.

  • j/k -- scroll up and down.
  • J/K -- next or previous mail.
  • v -- view attachments. This can be used for opening annoying HTML ad emails in the browser. You can also save the selected attachment with s.

On the compose screen...

  • a -- attach a file.
  • m -- edit highlighted attachment in text editor.
  • S -- choose to sign or encrypt mail (usually with PGP).
  • y -- send mail.

Configuration

  • ~/.config/mutt/muttrc -- main configuration file
  • ~/.config/mutt/accounts/ -- where mutt-wizard will put account-specific configuration files, named after your email addresses
  • ~/.local/share/mail/ -- where your mail is stored.

Extending

Neomutt is one of the most extensible programs on the planet. I am constantly surprised by what you can do with it. If you are ever bored, yet hungry for efficiency, check out the neomutt and neomuttrc manuals.

One nice little thing is how widely aliases can be used. For example, we can add a line like this to our muttrc:

alias besties luke@email.com, richard@email.com, linus@email.com

This aliases the sequence besties to the following text/email addresses. So we can just type besties as a recipient of a mail, and the other addresses will be filled in.

Note also that neomutt is configured to tab complete contact information stored with abook automatically.

Documentation

man neomutt or man neomuttrc.

Mutt/Neomutt on the ArchWiki