From 3decb461f7388b64f158cbb720c5b54cfbf92c28 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 20 Apr 2013 05:18:23 +1200 Subject: Stop Google IMAP and start using local Maildir Downloaded all my mail from Gmail with POP3 and am using the mutt/procmail/fetchmail/msmtp setup from now on. I'd share the configuration files for that latter three files but I can't see a good way to keep my passwords out of them. --- mutt/muttrc | 82 ++++++++++++++++++++++++++++--------------------------------- 1 file changed, 37 insertions(+), 45 deletions(-) diff --git a/mutt/muttrc b/mutt/muttrc index d4b6d530..62b23526 100644 --- a/mutt/muttrc +++ b/mutt/muttrc @@ -1,59 +1,51 @@ -# Paths -set certificate_file = ~/.mutt/certificates -set header_cache = ~/.mutt/cache/headers -set message_cachedir = ~/.mutt/cache/bodies +# Names +set realname = 'Tom Ryder' +set from = 'tej.ryder@gmail.com' +set use_from = yes +set envelope_from = yes -# Servers and server options -set folder = 'imaps://imap.gmail.com:993' -set from = 'tej.ryder@gmail.com' -set imap_user = 'tej.ryder@gmail.com' -set smtp_url = 'smtp://tej.ryder@smtp.gmail.com:587/' -set hostname = 'gmail.com' -set realname = 'Tom Ryder' +# SMTP +set sendmail = '/usr/bin/msmtp' -# Credentials -set my_password = `pass google.com/tej.ryder@gmail.com/mutt` -set imap_pass = $my_password -set smtp_pass = $my_password +# Mailbox specifics +set mbox_type = 'Maildir' +set folder = '~/Mail' +set spoolfile = '+/' +set header_cache = '~/.cache/mutt' # Intervals -set mail_check = 60 -set timeout = 300 -set imap_keepalive = 300 - -# Mailboxes -set spoolfile = '+INBOX' -set postponed = '+[Gmail]/Drafts' -unset record +set mail_check = 30 +set record = '+.Sent' +set postponed = '+.Drafts' +set sleep_time = 0 # Options -set beep = no -set beep_new = yes -set charset = 'utf-8' -set send_charset = 'utf-8' -set delete = yes -set fast_reply = yes -set include = yes -set markers = no -set move = no -set quit = 'ask-yes' -set smart_wrap = yes -set sort = 'reverse-threads' -set sort_aux = 'last-date-received' +set beep = no +set beep_new = yes +set charset = 'utf-8' +set send_charset = 'utf-8' +set delete = yes +set fast_reply = yes +set include = yes +set markers = no +set move = no +set pipe_decode = yes +set quit = yes +set smart_wrap = yes +set sort = 'reverse-threads' +set sort_aux = 'last-date-received' +set thorough_search = yes +set wait_key = no +unset confirmappend hdr_order Date From To Cc -# Aliases +# Alternates +source ~/.mutt/alternates set reverse_name = yes set use_envelope_from = yes -alternates 'tej.ryder@gmail.com|tom@sanctum.geek.nz' -# Macros -macro index,pager e "=[Gmail]/All Mail" "Archive conversation" -macro index,pager gi "=INBOX" "Go to Inbox" -macro index,pager ga "=[Gmail]/All Mail" "Go to All Mail" -macro index,pager gs "=[Gmail]/Starred" "Go to Starred Messages" -macro index,pager gd "=[Gmail]/Drafts" "Go to Drafts" -macro index,pager gt "=[Gmail]/Sent Mail" "Go to Sent Mail" +# Addresses +set query_command = "abook --mutt-query '%s'" # Colors color status color84 color22 -- cgit v1.2.3