Last active
September 28, 2018 18:59
-
-
Save JBaczuk/cfb47568daa82b935180e58799ead7f8 to your computer and use it in GitHub Desktop.
.muttrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Folder hooks | |
folder-hook 'account.com.gmail.personal' 'source ~/.mutt/account.com.gmail.personal' | |
folder-hook 'account.com.gmail.work' 'source ~/.mutt/account.com.gmail.work' | |
# Default account | |
source ~/.mutt/account.com.gmail.personal | |
# Macros for switching accounts | |
macro index <f2> '<sync-mailbox><enter-command>source ~/.mutt/account.com.gmail.personal<enter><change-folder>!<enter>' | |
macro index <f3> '<sync-mailbox><enter-command>source ~/.mutt/account.com.gmail.work<enter><change-folder>!<enter>' | |
# Fetch mail shortcut | |
bind index G imap-fetch-mail | |
# Place this in ~/.mutt/account.com.gmail.personal and source ~/.mutt/account.com.gmail.work | |
#set ssl_starttls=yes | |
#set ssl_force_tls=yes | |
#set imap_user = "<email>" | |
#set smtp_url = "smtps://<email>@smtp.gmail.com:465/" | |
#set from = "<email>" | |
#set realname = "Jordan Baczuk" | |
#set folder = imaps://imap.gmail.com/ | |
#set spoolfile = imaps://imap.gmail.com/INBOX | |
#set postponed="imaps://imap.gmail.com/[Gmail]/Drafts" | |
#set header_cache = "~/.mutt/cache/headers" | |
#set message_cachedir = "~/.mutt/cache/bodies" | |
#set certificate_file = "~/.mutt/certificates" | |
#set move = no | |
#set imap_keepalive = 900 | |
#set editor = "vim" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
install using:
$ brew install mutt
.muttrc
goes in the home directory~/.muttrc
If you have 2-factor auth for google enabled, you'll have to go to your google account and add an app password: https://support.google.com/accounts/answer/185833?hl=en