diff --git a/mutt/common b/mutt/common new file mode 100644 index 0000000..5945a2a --- /dev/null +++ b/mutt/common @@ -0,0 +1,14 @@ +set header_cache = ~/.cache/mutt + +set send_charset = "us-ascii:utf-8" +set text_flowed = yes + +unset imap_passive +set imap_keepalive = 300 +set mail_check = 60 +set timeout = 120 +set imap_check_subscribed + +set sort = threads + +set beep_new = yes diff --git a/mutt/gmail b/mutt/gmail new file mode 100644 index 0000000..51df7f4 --- /dev/null +++ b/mutt/gmail @@ -0,0 +1,25 @@ +source ~/.mutt/common + +set my_username = "jeremydkaplan" +set my_password = `pass show email/jeremydkaplan@gmail.com` + +set smtp_pass = $my_password + +set folder = "~/.mail/gmail/" +set mask = "*" + +set spoolfile = "+Inbox" +set record = +Sent +set postponed = +Drafts + +set copy = yes + +mailboxes `find ~/.mail/gmail -type d ! -name 'cur' ! -name 'tmp' ! -name 'new' | sed 's|/home/jdkaplan/.mail/gmail/|\+|' | sed ':a;N;$!ba;s/\n/ /g'` + +set realname = "Jeremy Kaplan" +set from = "$my_username@gmail.com" +set envelope_from = yes +set use_from = yes +set smtp_url = "smtps://$my_username@smtp.gmail.com:465" +set ssl_force_tls = yes +set ssl_starttls = yes diff --git a/mutt/mit b/mutt/mit new file mode 100644 index 0000000..56a038b --- /dev/null +++ b/mutt/mit @@ -0,0 +1,34 @@ +source ~/.mutt/common + +set my_username = "jdkaplan" +set my_password = `pass show email/jdkaplan@mit.edu` + +set smtp_pass = $my_password + +set folder = "~/.mail/mit/" + +set spoolfile = "+Inbox" +set record = +Sent +set postponed = +Drafts + +set copy = yes + +mailboxes `\ +for file in ~/.mail/mit/*; do \ + box=$(basename "$file"); \ + if [ ! "$box" = '.' -a \ + ! "$box" = '..' -a \ + ! "$box" = '.mbsyncstate' -a \ + ! "$box" = '.uidvalidity' ]; then \ + echo -n "\"+$box\" "; \ + fi; \ +done; \ +` + +set realname = "Jeremy Kaplan" +set from = "$my_username@mit.edu" +set envelope_from = yes +set use_from = yes +set smtp_url = "smtps://$my_username@outgoing.mit.edu:465" +set ssl_force_tls = yes +set ssl_starttls = yes