|
| 1 | +# vim:ft=muttrc |
| 2 | +# n.b. this uses the sidebar, which requires ubuntu's mutt-patched package |
| 3 | + |
| 4 | +# For future inspiration: |
| 5 | +# http://www.rosipov.com/blog/elegant-mutt-setup-for-use-with-gmail/ |
| 6 | +# http://stevelosh.com/blog/2012/10/the-homely-mutt/ |
| 7 | +# https://github.com/ulfalizer/Configuration-files/blob/master/mutt |
| 8 | +# https://vigasdeep.com/2014/05/07/install-config-mutt-sidebar/ |
| 9 | +# https://github.com/hugoroy/.mutt/blob/master/muttrc |
| 10 | +# https://pbrisbin.com/posts/mutt_gmail_offlineimap/ |
| 11 | +# https://wiki.archlinux.org/index.php/Mutt |
| 12 | +# http://wcm1.web.rice.edu/mutt-tips.html |
| 13 | + |
| 14 | +source ~/.mutt/auth |
| 15 | + |
| 16 | +set ssl_starttls = yes |
| 17 | +set ssl_force_tls = yes |
| 18 | +set folder = imaps://imap.gmail.com/ |
| 19 | +set spoolfile = imaps://imap.gmail.com/INBOX |
| 20 | +set header_cache = '~/.mutt/cache/headers' |
| 21 | +set message_cachedir = '~/.mutt/cache/bodies' |
| 22 | +set certificate_file = "~/.mutt/certificates" |
| 23 | + |
| 24 | +set mbox = "+[Gmail]/All Mail" |
| 25 | +set postponed = '+[Gmail]/Drafts" |
| 26 | + |
| 27 | +set editor = 'vim' |
| 28 | + |
| 29 | +set help = 'no' # remove the top-bar. wish I could customize it instead |
| 30 | + |
| 31 | +set sort = threads |
| 32 | +set sort_aux = last-date-received |
| 33 | + |
| 34 | +# weather mutt will move read messages from $spool to $mbox |
| 35 | +# essentially, auto-archives read messages |
| 36 | +set move = no |
| 37 | +unset record # the place a copy of outgoing messages is saved, gmail does this already |
| 38 | + |
| 39 | +# some background: https://dev.mutt.org/trac/wiki/UseCases/Gmail |
| 40 | +bind editor <space> noop # Allow folders with spaces in their names |
| 41 | +macro index gi "<change-folder>=INBOX<enter>" "Go to inbox" |
| 42 | +macro index gt "<change-folder>=Trash<enter>" "Go to trash" |
| 43 | +macro index,pager y "<save-message>=[Gmail]/All Mail<enter><enter>" "Archive" |
| 44 | + |
| 45 | +# the list of mailboxes shown in the sidebar |
| 46 | +mailboxes +INBOX "+[Gmail]/Sent Mail" +[Gmail]/Drafts +[Gmail]/Trash +cloud +docs |
| 47 | + |
| 48 | +# \Cj is <enter>, you can't separate them |
| 49 | +# https://dev.mutt.org/trac/ticket/3494#comment:2 |
| 50 | +bind index,pager J sidebar-next |
| 51 | +bind index,pager K sidebar-prev |
| 52 | +bind index,pager O sidebar-open |
| 53 | + |
| 54 | +bind index <return> display-message |
| 55 | +bind index gg first-entry |
| 56 | +bind index G last-entry |
0 commit comments