Skip to content

Instantly share code, notes, and snippets.

@ironhouzi
Created April 12, 2018 10:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ironhouzi/9c5aea1469b13c76ef5a1e59bb8ded9a to your computer and use it in GitHub Desktop.
Save ironhouzi/9c5aea1469b13c76ef5a1e59bb8ded9a to your computer and use it in GitHub Desktop.
set imap_user="user@fastmail.com"
set imap_pass=`gpass.sh mutt_fastmail`
set folder=imaps://imap.fastmail.com/
set spoolfile=+INBOX
# Gmail SMTP auto saves sent mails - no need to set
set record=""
set postponed="+Drafts"
# Archive read mails
set mbox="imaps://imap.fastmail.com/Archive"
set header_cache=~/.cache/neomutt
# https://www.neomutt.org/guide/reference search sleep_time for additional info
set sleep_time=0 # be faster
set beep=yes
set editor="nvim -c 'Prose'"
set sort=threads
set sort_aux=reverse-last-date-received
# Index page format. Default "%4C %Z %{%b %d} %-15.15L (%?l?%4l&%4c?) %s"
# set index_format="%4C %Z %{%b %d %R} %-15.15L (%?l?%4l&%4c?) %s"
set mark_old=no
set sidebar_visible
set sidebar_format="%B%?F? [%F]?%* %?N?%N/?%S"
set mail_check_stats
# You can use any gmail imap mailboxes
mailboxes \
=INBOX \
=Archive \
=Sent
# Vim like binds
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
# Sidebar binds
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 \CO sidebar-open # Ctrl-o to open selected folder
bind index,pager \CB sidebar-toggle-visible # Ctrl-b to toggle visibility of the sidebar
# mail binds
# bind index,pager R group-reply # Reply to all recipients
set realname="My Real Name"
set from="user@fastmail.com"
set smtp_url="smtps://smtp.fastmail.com:465/"
set smtp_pass=`gpass.sh mutt_fastmail`
# set smtp_authenticators="gssapi:login"
# Colours
source ~/.vim/plugged/badwolf/contrib/badwolf.muttrc
color indicator color15 color52 # Make the current line highlight clearer (red)
color sidebar_new color221 color233
color sidebar_flagged brightcolor211 color233
color sidebar_divider brightcolor39 color233
# urlview
macro index \CU |urlscan\n
macro pager \CU |urlscan\n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment