Breaking mail stuff
This commit is contained in:
parent
170e3e3ba5
commit
4f7610df01
5 changed files with 65 additions and 119 deletions
25
mbsyncrc
Normal file
25
mbsyncrc
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
IMAPAccount gmail
|
||||||
|
Host imap.gmail.com
|
||||||
|
User dustinswan@gmail.com
|
||||||
|
# PassCmd "gpg -d ~/.gmail-password.gpg"
|
||||||
|
# SSL
|
||||||
|
UseIMAPS yes
|
||||||
|
CertificateFile ~/.mail/gmail.pem
|
||||||
|
|
||||||
|
IMAPStore gmail-remote
|
||||||
|
Account gmail
|
||||||
|
|
||||||
|
MaildirStore gmail-local
|
||||||
|
Path ~/.mail/gmail/
|
||||||
|
Inbox ~/.mail/gmail/INBOX
|
||||||
|
|
||||||
|
Channel gmail
|
||||||
|
Master :gmail-remote:
|
||||||
|
Slave :gmail-local:
|
||||||
|
# Include everything
|
||||||
|
# Patterns *
|
||||||
|
# Automatically create missing mailboxes, both locally and on the server
|
||||||
|
Create Both
|
||||||
|
# Expunge Both
|
||||||
|
# Save the synchronization state files in the relevant directory
|
||||||
|
SyncState *
|
||||||
|
|
@ -1,23 +1,38 @@
|
||||||
#color status white red
|
#color status white red
|
||||||
|
|
||||||
# Receive options.
|
# Receive options.
|
||||||
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 postponed = +Drafts
|
set postponed = +Drafts
|
||||||
# set record = +Sent # Gmail saves this automatically
|
# set record = +Sent # Gmail saves this automatically
|
||||||
unset record
|
unset record
|
||||||
|
unset move
|
||||||
set move = no
|
|
||||||
|
|
||||||
# Send options.
|
# Send options.
|
||||||
set smtp_url = "smtps://dustinswan@smtp.gmail.com"
|
#set smtp_url = "smtps://dustinswan@smtp.gmail.com"
|
||||||
set smtp_pass = $my_gmail_password
|
#set smtp_pass = $my_gmail_password
|
||||||
set realname = 'Dustin Swan'
|
#set realname = 'Dustin Swan'
|
||||||
set from = "dustinswan@gmail.com"
|
#set from = "dustinswan@gmail.com"
|
||||||
set hostname = "gmail.com"
|
#set hostname = "gmail.com"
|
||||||
|
|
||||||
# Hook
|
# Hook
|
||||||
account-hook $folder "set imap_user = dustinswan@gmail.com"
|
#account-hook $folder "set imap_user = dustinswan@gmail.com"
|
||||||
account-hook $folder "set imap_pass = $my_gmail_password"
|
#account-hook $folder "set imap_pass = $my_gmail_password"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
set from = "dustinswan@gmail.com"
|
||||||
|
set sendmail = "msmtp -a DustinswanGmail"
|
||||||
|
|
||||||
|
set spoolfile = "+DustinswanGmail/INBOX"
|
||||||
|
set mbox = "+DustinswanGmail/archive"
|
||||||
|
set postponed = "+DustinswanGmail/drafts"
|
||||||
|
|
||||||
|
unset move
|
||||||
|
|
||||||
|
color status white red
|
||||||
|
|
|
||||||
49
mutt/muttrc
49
mutt/muttrc
|
|
@ -1,7 +1,7 @@
|
||||||
# General
|
# General
|
||||||
set realname = "Dustin Swan"
|
set realname = "Dustin Swan"
|
||||||
|
|
||||||
#set folder = ~/.mail
|
set folder = ~/.mail
|
||||||
set alias_file = ~/.mutt/alias
|
set alias_file = ~/.mutt/alias
|
||||||
set header_cache = ~/.mutt/cache/headers
|
set header_cache = ~/.mutt/cache/headers
|
||||||
set message_cachedir = ~/.mutt/cache/bodies
|
set message_cachedir = ~/.mutt/cache/bodies
|
||||||
|
|
@ -10,18 +10,19 @@ set mailcap_path = ~/.mailcap
|
||||||
set tmpdir = ~/.mutt/temp
|
set tmpdir = ~/.mutt/temp
|
||||||
set signature = ~/.mutt/sig
|
set signature = ~/.mutt/sig
|
||||||
|
|
||||||
#set mbox_type = Maildir
|
set mbox_type = Maildir
|
||||||
|
#
|
||||||
|
# Start with these
|
||||||
|
set spoolfile = "+gmail/INBOX"
|
||||||
|
#set mbox = "+gmail/archive" # TODO
|
||||||
|
#set postponed = "+gmail/drafts" # TODO
|
||||||
|
|
||||||
source "gpg -d ~/.gmail_password_mutt.gpg |"
|
#source "gpg -d ~/.gmail_password_mutt.gpg |"
|
||||||
source "gpg -d ~/.iocom_password_mutt.gpg |"
|
#source "gpg -d ~/.iocom_password_mutt.gpg |"
|
||||||
|
|
||||||
folder-hook DustinswanGmail 'source ~/.mutt/DustinswanGmail.muttrc'
|
|
||||||
folder-hook DswanIOCOM 'source ~/.mutt/DswanIOCOM.muttrc'
|
|
||||||
|
|
||||||
set sendmail_wait = 0
|
set sendmail_wait = 0
|
||||||
set send_charset = "utf-8"
|
set send_charset = "utf-8"
|
||||||
|
|
||||||
|
|
||||||
bind index gg first-entry
|
bind index gg first-entry
|
||||||
bind index G last-entry
|
bind index G last-entry
|
||||||
bind index R group-reply # Was g
|
bind index R group-reply # Was g
|
||||||
|
|
@ -57,43 +58,19 @@ bind index <right> sidebar-open
|
||||||
#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
|
# 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
|
||||||
|
|
||||||
|
# '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"
|
||||||
|
|
||||||
# 'a' shows all messages again (supersedes default <alias> binding)
|
# 'a' shows all messages again (supersedes default <alias> binding)
|
||||||
macro index a "<limit>all\n" "show all messages (undo limit)"
|
macro index a "<limit>all\n" "show all messages (undo limit)"
|
||||||
|
|
||||||
# Urlview
|
# Urlview
|
||||||
macro pager \Cu "|urlview<enter>" "call urlview to open links"
|
macro pager \Cu "|urlview<enter>" "call urlview to open links"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# General options
|
|
||||||
set imap_check_subscribed
|
|
||||||
set imap_keepalive = 300
|
|
||||||
unset imap_passive
|
|
||||||
set mail_check = 60
|
|
||||||
|
|
||||||
set ssl_force_tls = yes
|
|
||||||
unset ssl_starttls
|
|
||||||
|
|
||||||
# IOCOM
|
|
||||||
source "~/.mutt/DswanIOCOM.muttrc"
|
|
||||||
folder-hook 'imaps://secure.emailsrvr.com' 'source ~/.mutt/DswanIOCOM.muttrc'
|
|
||||||
|
|
||||||
# Gmail
|
|
||||||
source "~/.mutt/DustinswanGmail.muttrc"
|
|
||||||
folder-hook 'imaps://imap.gmail.com' 'source ~/.mutt/DustinswanGmail.muttrc'
|
|
||||||
|
|
||||||
macro index <f2> '<change-folder>imaps://imap.gmail.com<enter>'
|
|
||||||
macro index <f3> '<change-folder>imaps://secure.emailsrvr.com<enter>'
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
# configured here named ".notmuch".
|
# configured here named ".notmuch".
|
||||||
#
|
#
|
||||||
[database]
|
[database]
|
||||||
path=/home/dustinswan/.mail
|
path=/Users/dustinswan/.mail
|
||||||
|
|
||||||
# User configuration
|
# User configuration
|
||||||
#
|
#
|
||||||
|
|
@ -31,7 +31,6 @@ path=/home/dustinswan/.mail
|
||||||
[user]
|
[user]
|
||||||
name=Dustin Swan
|
name=Dustin Swan
|
||||||
primary_email=dustinswan@gmail.com
|
primary_email=dustinswan@gmail.com
|
||||||
other_email=dswan@iocom.com;
|
|
||||||
|
|
||||||
# Configuration for "notmuch new"
|
# Configuration for "notmuch new"
|
||||||
#
|
#
|
||||||
|
|
|
||||||
|
|
@ -1,70 +0,0 @@
|
||||||
[general]
|
|
||||||
accounts = DustinswanGmail, DswanIOCOM
|
|
||||||
pythonfile=~/.mutt/offlineimap.py
|
|
||||||
maxsyncaccounts = 2
|
|
||||||
# ui = quiet
|
|
||||||
|
|
||||||
[mbnames]
|
|
||||||
enabled = yes
|
|
||||||
filename = ~/.mutt/mailboxes
|
|
||||||
header = "mailboxes "
|
|
||||||
peritem = "+%(accountname)s/%(foldername)s"
|
|
||||||
sep = " "
|
|
||||||
footer = "\n"
|
|
||||||
|
|
||||||
[Account DustinswanGmail]
|
|
||||||
localrepository = DustinswanGmail-Local
|
|
||||||
remoterepository = DustinswanGmail-Remote
|
|
||||||
autorefresh = 5
|
|
||||||
quick = 10
|
|
||||||
postsynchook = notmuch new
|
|
||||||
|
|
||||||
[Repository DustinswanGmail-Local]
|
|
||||||
type = Maildir
|
|
||||||
localfolders = ~/.mail/DustinswanGmail
|
|
||||||
nametrans = lambda folder: {'drafts': '[Gmail]/Drafts',
|
|
||||||
'sent': '[Gmail]/Sent Mail',
|
|
||||||
'flagged': '[Gmail]/Starred',
|
|
||||||
'trash': '[Gmail]/Trash',
|
|
||||||
'archive': '[Gmail]/All Mail',
|
|
||||||
'important': '[Gmail]/Important',
|
|
||||||
}.get(folder, folder)
|
|
||||||
|
|
||||||
[Repository DustinswanGmail-Remote]
|
|
||||||
maxconnections = 1
|
|
||||||
type = Gmail
|
|
||||||
remoteuser = dustinswan@gmail.com
|
|
||||||
remotepasseval = gmail_password()
|
|
||||||
realdelete = no
|
|
||||||
nametrans = lambda folder: {'[Gmail]/Drafts': 'drafts',
|
|
||||||
'[Gmail]/Sent Mail': 'sent',
|
|
||||||
'[Gmail]/Starred': 'flagged',
|
|
||||||
'[Gmail]/Trash': 'trash',
|
|
||||||
'[Gmail]/All Mail': 'archive',
|
|
||||||
'[Gmail]/Important': 'important',
|
|
||||||
}.get(folder, folder)
|
|
||||||
|
|
||||||
folderfilter = lambda folder: folder not in ['[Gmail]/Trash',
|
|
||||||
'[Gmail]/Spam',
|
|
||||||
]
|
|
||||||
|
|
||||||
cert_fingerprint = b0ba392bba326e6feb1add4d04fa0fb86cd173fa
|
|
||||||
|
|
||||||
[Account DswanIOCOM]
|
|
||||||
localrepository = DswanIOCOM-Local
|
|
||||||
remoterepository = DswanIOCOM-Remote
|
|
||||||
autorefresh = 5
|
|
||||||
quick = 10
|
|
||||||
postsynchook = notmuch new
|
|
||||||
|
|
||||||
[Repository DswanIOCOM-Local]
|
|
||||||
type = Maildir
|
|
||||||
localfolders = ~/.mail/DswanIOCOM
|
|
||||||
|
|
||||||
folderfilter = lambda f: f not in ['drafts']
|
|
||||||
|
|
||||||
[Repository DswanIOCOM-Remote]
|
|
||||||
type = IMAP
|
|
||||||
remotehost = secure.emailsrvr.com
|
|
||||||
remoteuser = dswan@insors.com
|
|
||||||
remotepasseval = iocom_password()
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue