Introduction
Because E-Mail is hard and no mail client is perfect I decided to setup neomutt again after more than five years. Now I am able to view my mails via ssh command line.
Neomutt will certainly not be my go to client, but anyway here is my basic config.
Cheatsheet
set imap_user="john.doe@mailbox.org"
set imap_pass="password"
set imap_authenticators=LOGIN
set imap_idle=yes
set header_cache=/home/john/.cache/neomutt/headers
set message_cachedir=/home/john/.cache/neomutt/bodies
set folder=imaps://imap.mailbox.org:993
set spoolfile=+INBOX
set record="+Sent"
set postponed="+Drafts"
set mail_check=90
set timeout=15
color progress white blue
set use_threads=threads sort=reverse-date sort_aux=last-date-received
set sleep_time=0 # be faster
set beep=no # no beep sound
set editor="nvim"
auto_view text/html
set sidebar_visible
set sidebar_format="%B%?F? [%F]?%* %?N?%N/?%S"
set mail_check_stats
mailboxes =INBOX =Sent =Drafts =Junk =Trash
bind attach,index,pager \CD next-page
bind attach,index,pager \CU previous-page
bind pager g top
bind pager G bottom
bind attach,index g first-entry
bind attach,index G last-entry
bind index,pager "," imap-fetch-mail
bind index,pager \CP sidebar-prev # Ctrl-n to select next folder
bind index,pager \CN sidebar-next # Ctrl-p to select previous folder
bind index,pager \CI sidebar-open # Ctrl-i to open selected folder
bind index,pager \CB sidebar-toggle-visible # Ctrl-b to toggle visibility of the sidebar
set realname="John Doe"
set from="john.doe@mailbox.org"
set smtp_url="smtps://john.doe@mailbox.org@smtp.mailbox.org:465"
set smtp_pass="password"
set smtp_authenticators=LOGIN
set query_command="abook --mutt-query '%s'"
bind editor <Tab> complete-query
macro index,pager a "<pipe-message>abook --add-email-quiet<return>" "Add this sender to abook"
ignore *
unignore from date subject to cc
unignore organization organisation x-mailer: x-newsreader: x-mailing-list:
unignore posted-to:
Put this file in /home/john/.config/neomutt/neomuttrc
.
Edit the file permissions, because your password is contained within this plain text file:
chmod 600 /home/john/.config/neomutt/neomuttrc
Conclusion
Neomutt is a nice little software with actually a lot of features. It is quite usable and surprisingly fast to setup.