Splitting out mutt config for offlineimap

This commit is contained in:
Dustin Swan
2013-06-25 10:11:12 -05:00
parent 2b3339f301
commit b15cb36168
10 changed files with 518 additions and 15 deletions

View File

@@ -1,8 +1,36 @@
set from = "dswan@iocom.com"
set sendmail = "msmtp -a DswanIOCOM"
#set from = "dswan@iocom.com"
#set sendmail = "msmtp -a DswanIOCOM"
set spoolfile = "+DswanIOCOM/INBOX"
set mbox = "+DswanIOCOM/archive"
set postponed = "+DswanIOCOM/drafts"
#set spoolfile = "+DswanIOCOM/INBOX"
#set mbox = "+DswanIOCOM/archive"
#set postponed = "+DswanIOCOM/drafts"
color status white blue
#color status white blue
# New Stuff
## Receive options.
set imap_user=dswan@insors.com
#set imap_pass=****
set folder = imaps://dswan@secure.emailsrvr.com/
set spoolfile = +INBOX
set postponed = +Drafts
set record = +Sent
## Send options.
set smtp_url=smtps://dswan@secure.emailsrvr.com
set realname='Dustin Swan'
set from=dswan@iocom.com
set hostname="iocom.com"
set signature="Dustin Swan"
# Connection options
set ssl_force_tls = yes
unset ssl_starttls
## Hook -- IMPORTANT!
#account-hook $folder "set imap_user=dswan@insors.com imap_pass=****"
account-hook $folder "set imap_user=dswan@insors.com"

View File

@@ -1,10 +1,38 @@
set from = "dustinswan@gmail.com"
set sendmail = "msmtp -a DustinswanGmail"
#set from = "dustinswan@gmail.com"
#set sendmail = "msmtp -a DustinswanGmail"
set spoolfile = "+DustinswanGmail/INBOX"
set mbox = "+DustinswanGmail/archive"
set postponed = "+DustinswanGmail/drafts"
#set spoolfile = "+DustinswanGmail/INBOX"
#set mbox = "+DustinswanGmail/archive"
#set postponed = "+DustinswanGmail/drafts"
unset move
#unset move
color status white red
#color status white red
# New Stuff
## Receive options.
set imap_user=dustinswan@gmail.com
#set imap_pass=****
set folder = imaps://dustinswan@imap.gmail.com/
set spoolfile = +INBOX
set postponed = +Drafts
set record = +Sent
## Send options.
set smtp_url=smtps://dustinswan@smtp.gmail.com
set realname='Dustin Swan'
set from=dustinswan@gmail.com
set hostname="gmail.com"
set signature="Dustin Swan"
# Connection options
set ssl_force_tls = yes
unset ssl_starttls
## Hook -- IMPORTANT!
#account-hook $folder "set imap_user=dustinswan@gmail.com imap_pass=****"
account-hook $folder "set imap_user=dustinswan@gmail.com"

View File

@@ -1,7 +1,7 @@
# General
set realname = "Dustin Swan"
set folder = ~/.mail
#set folder = ~/.mail
set alias_file = ~/.mutt/alias
set header_cache = ~/.mutt/cache/headers
set message_cachedir = ~/.mutt/cache/bodies
@@ -72,9 +72,36 @@ source ~/.mutt/mailboxes
# Notmuch
# 'L' performs a notmuch query, showing only the results
macro index L "<enter-command>unset wait_key<enter><shell-escape>read -p 'notmuch query: ' x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;chomp@a;s/\^id:// for@a;$,=\"|\";print@a'\`\"<enter>" "show only messages matching a notmuch pattern"
#macro index L "<enter-command>unset wait_key<enter><shell-escape>read -p 'notmuch query: ' x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;chomp@a;s/\^id:// for@a;$,=\"|\";print@a'\`\"<enter>" "show only messages matching a notmuch pattern"
# 'a' shows all messages again (supersedes default <alias> binding)
macro index a "<limit>all\n" "show all messages (undo limit)"
# Urlview
macro pager \Cu "|urlview<enter>" "call urlview to open links"
# New stuff
## General options
set imap_check_subscribed
set imap_keepalive = 300
unset imap_passive
set mail_check = 60
set mbox_type=Maildir
## Gmail
source "~/.mutt/DustinswanGmail.muttrc"
# Here we use the $folder variable that has just been set in the sourced file.
# We must set it right now otherwise the 'folder' variable will change in the next sourced file.
folder-hook $folder 'source ~/.mutt/DustinswanGmail.muttrc'
## IOCOM
source "~/.mutt/DswanIOCOM.muttrc"
folder-hook *dswan@iocom.com/ 'source ~/.mutt/DswanIOCOM.muttrc'