set use_from = yes set envelope_from = "yes" set editor = "vim -c 'set tw=70 et' '+/^$' " set mbox = maildir set folder = "~/mail/" set sendmail = "/usr/bin/msmtp" #set certificate_file=~/.mutt/certificates set header_cache="~/.mutt/hcache" #set message_cachedir="~/.mutt/cache/bodies" set postponed = "~/mail/postponed" set copy = yes folder-hook . set record = ^ set sort = threads unset strict_threads set sort_aux = reverse-date #set sort_browser=reverse-date unset abort_nosubject unset beep set edit_headers # See the headers when editing unset fcc_attach set fcc_clear set imap_keepalive = 300 unset imap_passive unset move #set reverse_name unset reverse_realname set strict_threads set sort_aux = reverse-date-sent set use_from # Always highlight the newest message in the mailbox, # not the newest unread one. folder-hook . push # When looking at the list of attachments of an email, # hitting 's' will save it in ~/dldir/ #macro attach s ~/dldir/y hdr_order From: Date: User-Agent: X-Mailer To: Cc: Reply-To: Subject: ignore * unignore From: Date: User-Agent: X-Mailer To: Cc: Reply-To: Subject: my_hdr Reply-To: bind index "^" imap-fetch-mail bind index zt current-top bind index zz current-middle bind index zb current-bottom bind pager k previous-line bind pager j next-line bind pager previous-undeleted bind pager next-undeleted set query_command = "abook --mutt-query '%s'" macro generic,index,pager \ca "abook" "launch abook" macro index,pager A "abook --add-email-quiet" "add the sender address to abook" # Multiple account macro macro index @ ":source ~/.mutt/accounts/" "shortcut to switch accounts" # Set realname and from in a file in ~/.mutt/accounts/ # #$$ cat ~/.mutt/accounts/gmail #> set realname = "Alex Klinkhamer" #> set from = "grencez@gmail.com" # # start mutt, type @gmail # (followed by a newline) and you are using the gmail account to send emails # # This works because I use msmtp for sending mail, # this is the corresponding entry in .msmtprc # (corresponds since the from field matches) #$$ cat ~/.msmtprc #> account gmail #> host smtp.gmail.com #> from grencez@gmail.com #> port 587 #> tls on #> auth on #> user grencez@gmail.com #> password hunter2