# nice manpage here # http://linux.die.net/man/5/muttrc # set useragent to somethign awesome like eck # first turn off user_agent # toggle flagged messages # https://github.com/neomutt/neomutt/issues/621 bind index . noop # .i will show all new/flagged macro index .i "(~N|~F)" "view new/flag" # .a will show all again macro index .a "~A" "view all" set user_agent=no my_hdr User-Agent:Mutt/1.6.2-neo (NetBSD/sparc64) # show message count in sidebar # https://github.com/neomutt/neomutt/releases #set sidebar_format = "%B%?F? [%F]?%* %?N?%N/?%S" ### edit: removing flagged messages tag, people abuse this set sidebar_format = "%B %* %?N?%N/?%S" set mail_check_stats = yes set sidebar_width = 30 set sidebar_visible = yes color sidebar_new yellow default # dont mark messages old set mark_old = no # these bind keys for the folder pane # ctrl-n, ctrl-p to select next, prev folder # ctrl-o to open selected folder ### EDIT MARK ALL READ macro index .r "T.*\n;WN" "party time, excellent" bind index \CP sidebar-prev bind index \CN sidebar-next bind index \CO sidebar-open bind pager \CP sidebar-prev bind pager \CN sidebar-next bind pager \CO sidebar-open #set folder="~/Mail/mailboxes" ##set edit_headers = yes bind index \t next-unread bind pager \t next-unread bind index ,\t previous-unread bind pager ,\t previous-unread # LDAP search # http://www.perlmonks.org/?node_id=65152 set query_command = "~/.mutt/mutt-ldap-lookup.pl '%s'" # sort by thread set sort = threads # b toggles sidebar visibility #macro index b 'toggle sidebar_visible' #macro pager b 'toggle sidebar_visible' macro index b 'toggle sidebar_visible' macro pager b 'toggle sidebar_visible' ### save my sent messages #set record=imaps://wfoster@mail.example.com/Sent set record=~/Maildir/Sent #### useful settings from docs # activate TLS if available on the server #set signature = "~/.signature" set ssl_starttls=yes # always use SSL when connecting to a server set ssl_force_tls=yes # Don't wait to enter mailbox manually unset imap_passive # # Automatically poll subscribed mailboxes for new mail (new in 1.5.11) set imap_check_subscribed # Reduce polling frequency to a sane level ## trobert banhammer ##set mail_check=60 set mail_check=300 # And poll the current mailbox more often (not needed with IDLE in post 1.5.11) set timeout=10 # keep a cache of headers for faster loading (1.5.9+?) #set header_cache=~/.mutt/hcache #set header_cache=~/Localmail/hcache set header_cache=~/Localmail/hcache # Display download progress every 5K set net_inc=5 # set set sidebar_short_path=yes for newer versions # https://github.com/neomutt/neomutt/issues/2293 set sidebar_short_path=yes # force envelope and sender set use_from set envelope_from set hostname="example.com" set realname="Will Foster" set from="wfoster@example.com" set spoolfile=~/Maildir/INBOX # NEEDED for maildir format set mbox_type=Maildir set folder=~/Maildir/ ######### BEGIN IMAP FOLDERS mailboxes =INBOX \ =Sent \ =Drafts \ =Junk \ =Trash \ =browbeat-review \ =community-cage \ =ENG \ =ENG.bugzilla \ =ENG.conf-talks \ =ENG.os-list-dev \ =github ######### END IMAP FOLDERS ##### UPDATED NOTMUCH SETTINGS ####### macro index \ "unset wait_key~/.mutt/mutt-notmuch.pl --prompt search~/.cache/mutt_results" \ "notmuch: search mail" macro index \ "unset wait_key~/.mutt/mutt-notmuch.pl thread~/.cache/mutt_resultsset wait_key" \ "notmuch: reconstruct thread" macro index \ "unset wait_key~/.mutt/mutt-notmuch.pl tag -inbox" \ "notmuch: remove message from inbox" set move=no set certificate_file=/home/wfoster/.mutt-certificates ignore * unignore From To Cc Subject Date Reply-To Organization X-Mailer User-Agent # Order to display the headers in hdr_order From: Date: To: Cc: Subject: set edit_headers # Use vim as the editor - this line will wrap # Set wordwrap on in vim to automatically wrap lines - # no :gq all the time set editor="vim +':set textwidth=70' +':set wrap' +\`awk '/^$/ {print i+2; exit} {i++}' %s\` %s" # set format=flowed set text_flowed # dont mark messages old set nomark_old # Automatically quote message set include=yes # Set quotemark to 1 byte set indent_str="> " set index_format = "%4C %Z %{%b %d} %-15.15F (%4l) %s" set forward_format="Fw: %s" # subject in forwarded messages set date_format="%d/%m/%y %H:%M %Z" set quote_regexp="^([A-Za-z ]+>|[]%>:|}-][]>:|}-]*)" set smtp_url="smtp://smtp.corp.example.com" ### GMAIL USERS NEED THIS: ### set smtp_url = 'smtps://username@examplecompany.com@smtp.gmail.com' ### set smtp_pass = 'YOUR_APP_PASSWORD' set sendmail="/usr/sbin/sendmail" set mailcap_path = ~/.mutt/mailcap # automatically open evil HTML auto_view text/html set mime_forward="yes" set mime_forward_rest="yes" color quoted0 blue default color quoted1 green default color quoted2 red default color quoted3 blue default color quoted4 green default color quoted5 red default color quoted6 blue default color signature green default color tilde cyan default ### edit try new colors color tree magenta default # new set sidebar delim set sidebar_divider_char='★' ### make new messages yellow color index brightyellow default ~N # New# #color header white black . # Headers are this color, #color header white black ^Subject # except for `Subject:'. ### latest edit color header white default . # Headers are this color, color header red white ^Subject # except for `Subject:'. color header black red ^(X-Spam-Status:\ Yes|X-Virus-Report:) color header black red ^Newsgroups:.*, # cross-posted color header black green ^Followup-To: # followup header color status brightblue default color indicator default red color markers cyan black ## GPG encrypt to self option # http://www.neomutt.org/feature/smime-encrypt-self/ set smime_encrypt_self = yes set smime_default_key = 07BC7E81 source ~/.muttrc-gpg