Switching to offlineimap, starting to add my work email, updating muttrc accordingly

master
Dustin Swan 12 years ago
parent 99ba990992
commit 781492b3cb

@ -4,19 +4,39 @@ set my_gmail_password = `gpg -d ~/.gmail_password.gpg`
# General # General
set realname = "Dustin Swan" set realname = "Dustin Swan"
# When usisng offlineimap
set folder = ~/.mail
set alias_file = ~/.mutt/alias
set header_cache = ~/.mutt/cache/headers
set message_cachedir = ~/.mutt/cache/bodies
set certificate_file = ~/.mutt/certificates
set mailcap_path = ~/.mutt/mailcap
set tmpdir = ~/.mutt/temp
set signature = ~/.mutt/sig
set mbox_type = Maildir
unset move
set spoolfile = "+dustinswan-gmail.com/INBOX"
set mbox = "+dustinswan-gmail.com/archive"
set postponed = "+dustinswan-gmail.com/drafts"
folder-hook dustinswan-gmail.com set from="dustinswan@gmail.com"
folder-hook dswan-iocom.com set from="dustinswan@gmail.com"
# Gmail IMAP # Gmail IMAP
set imap_user = "dustinswan@gmail.com" #set imap_user = "dustinswan@gmail.com"
set imap_pass = $my_gmail_password #set imap_pass = $my_gmail_password
set folder = "imaps://imap.gmail.com/" #set folder = "imaps://imap.gmail.com/"
set spoolfile = +INBOX #set spoolfile = +INBOX
set imap_check_subscribed #set imap_check_subscribed
set header_cache = ~/.mutt/hcache #set header_cache = ~/.mutt/hcache
# # Don't need this because Gmail saves it automatically # # Don't need this because Gmail saves it automatically
# set record = "+[Gmail]/Sent Mail" # set record = "+[Gmail]/Sent Mail"
set postponed = "+[Gmail]/Drafts" #set postponed = "+[Gmail]/Drafts"
unset imap_passive #unset imap_passive
set imap_keepalive = 300 #set imap_keepalive = 300
set mail_check = 60 #set mail_check = 60
# SMTP # SMTP
set smtp_url = "smtp://dustinswan@smtp.gmail.com:587/" set smtp_url = "smtp://dustinswan@smtp.gmail.com:587/"
@ -40,22 +60,22 @@ set sort = threads
set sort_aux = reverse-last-date-received set sort_aux = reverse-last-date-received
# Sidebar # Sidebar
set sidebar_delim = ' │' #set sidebar_delim = ' │'
set sidebar_visible = yes #set sidebar_visible = yes
set sidebar_width = 24 #set sidebar_width = 24
#color sidebar_new color221 color233 #color sidebar_new color221 color233
bind index <down> sidebar-next #bind index <down> sidebar-next
bind index <up> sidebar-prev #bind index <up> sidebar-prev
bind index <right> sidebar-open #bind index <right> sidebar-open
# Status Bar # Status Bar
#set status_chars = " *&A" #set status_chars = " *&A"
#set status_format = "---[ Folder: %f ]---[%r%n messages%?n? (%n new)?%?d? (%d to delete)?%?t? (%t tagged)? ]---%>-%?p?( %p postponed )?---"" #set status_format = "---[ Folder: %f ]---[%r%n messages%?n? (%n new)?%?d? (%d to delete)?%?t? (%t tagged)? ]---%>-%?p?( %p postponed )?---""
# Fucking html mail # Fucking html mail
auto_view text/html #auto_view text/html
alternative_order text/plain text/enriched text/html #alternative_order text/plain text/enriched text/html
# Colors # Colors
source ~/.mutt/mutt-colors-solarized-dark-256.muttrc # source ~/.mutt/mutt-colors-solarized-dark-256.muttrc

@ -1,7 +1,8 @@
import subprocess import subprocess
import os
def gmail_password(): def gmail_password():
path = "/Users/dustinswan/.gmail_password.gpg" path = os.environ['HOME'] + "/.gmail_password.gpg"
args = ["gpg", "-d", path] args = ["gpg", "-d", path]
try: try:
return subprocess.check_output(args).rstrip() return subprocess.check_output(args).rstrip()

@ -2,7 +2,7 @@
# get started fast. # get started fast.
[general] [general]
accounts = DustinSwanGmail accounts = DustinSwanGmail, DswanIOCOM
pythonfile=~/.mutt/offlineimap.py pythonfile=~/.mutt/offlineimap.py
[Account DustinSwanGmail] [Account DustinSwanGmail]
@ -36,3 +36,7 @@ folderfilter = lambda folder: folder not in ['[Gmail]/Trash',
'[Gmail]/Spam', '[Gmail]/Spam',
] ]
cert_fingerprint = 6d1b5b5ee0180ab493b71d3b94534b5ab937d042 cert_fingerprint = 6d1b5b5ee0180ab493b71d3b94534b5ab937d042
[Account DswanIOCOM]
type = Maildir
localfolders = ~/.mail/dswan-iocom.com

Loading…
Cancel
Save