Source

dotfiles / mutt / muttrc.gmail

# Account Settings -----------------------------------

set realname = "Peter Sanchez"
set from = "pjs@petersanchez.com"
set use_from = yes
unset signature

set sendmail = "/opt/local/bin/msmtp -a gmail"
set sendmail_wait = 0

# Sync email
macro index O "<sync-mailbox><shell-escape>offlineimap -a PeterGmail<enter>"           "run offlineimap to sync all mail"
macro index o "<sync-mailbox><shell-escape>offlineimap -q -a PeterGmail -f INBOX<enter>" "run offlineimap to sync inbox"
macro index A "<save-message>+petersanchez-gmail.com/archive<enter>" "archive message"

# Google Tools
macro index,pager ,d "<shell-escape>echo 'https://drive.google.com/'|urlview<enter>" "open Google Drive"
macro index,pager ,c "<shell-escape>echo 'https://www.google.com/calendar/render'|urlview<enter>" "open Google Calendar"

# Default inbox.
set spoolfile = "+petersanchez-gmail.com/INBOX"

# Alternate email addresses.
alternates petersanchez@gmail.com

# Mailboxes to show in the sidebar.
#unmailboxes *
#mailboxes +petersanchez-gmail.com/INBOX \
	  #+petersanchez-gmail.com/archive \
	  #+petersanchez-gmail.com/sent \
	  #+petersanchez-gmail.com/drafts \
	  #+petersanchez-gmail.com/todo \
	  #+petersanchez-gmail.com/needs_reply \
	  #+petersanchez-gmail.com/fabric_users \
	  #+petersanchez-gmail.com/fbsd_announce \
	  #+petersanchez-gmail.com/fbsd_security \
	  #+petersanchez-gmail.com/socal_piggies \
	  #+petersanchez-gmail.com/auth_net \
	  #+petersanchez-gmail.com/Systems \
	  #+petersanchez-gmail.com/Travel \
          #+search \

# Other special folders.
set mbox      = "+petersanchez-gmail.com/archive"
set postponed = "+petersanchez-gmail.com/drafts"