From 9050f51e30df5a7ef222d211f1a1d347d661d910 Mon Sep 17 00:00:00 2001 From: paulwalko Date: Tue, 5 Dec 2017 19:55:57 -0500 Subject: [PATCH] add LUUGmail --- Xresources | 1 + msmtprc | 37 ++++++++++++++++++++++--------------- mutt/accounts/gmail | 4 ++-- mutt/accounts/vtluug | 7 +++++++ mutt/msmtp.log | 8 ++++++++ mutt/muttrc | 20 +++++++++++--------- offlineimaprc | 38 +++++++++++++++++++++++++++++++------- zshrc | 2 +- 8 files changed, 83 insertions(+), 34 deletions(-) create mode 100644 mutt/accounts/vtluug create mode 100644 mutt/msmtp.log diff --git a/Xresources b/Xresources index 6e79793..bea3d00 100644 --- a/Xresources +++ b/Xresources @@ -7,3 +7,4 @@ urxvt.shading: 30 urxvt*font: xft:DejaVuSansMono:pixelsize=14 urxvt*boldFont: xft:DejaVuSansMono:pixelsize=14 +#Xft.dpi: 180 diff --git a/msmtprc b/msmtprc index 987cfaf..35c3aea 100644 --- a/msmtprc +++ b/msmtprc @@ -5,25 +5,32 @@ tls_starttls tls_trust_file /etc/ssl/certs/ca-certificates.crt logfile ~/.mutt/msmtp.log -account vt -host smtp.gmail.com -port 587 -user pwalko@vt.edu +account vt +host smtp.gmail.com +port 587 +user pwalko@vt.edu passwordeval "pass email/vt" -from pwalko@vt.edu +from pwalko@vt.edu -account walko -host smtp.gmail.com -port 587 -user paul@walko.org +account walko +host smtp.gmail.com +port 587 +user paul@walko.org passwordeval "pass email/walko" -from paul@walko.org +from paul@walko.org -account gmail -host smtp.gmail.com -port 587 -user paulsw.pw@gmail.com +account gmail +host smtp.gmail.com +port 587 +user paulsw.pw@gmail.com passwordeval "pass email/gmail" -from paulsw.pw@gmail.com +from paulsw.pw@gmail.com + +account vtluug +host acidburn.vtluug.org +port 587 +user pew +passwordeval "pass email/vtluug" +from pew@vtluug.org account default : vt diff --git a/mutt/accounts/gmail b/mutt/accounts/gmail index 511c375..1554460 100644 --- a/mutt/accounts/gmail +++ b/mutt/accounts/gmail @@ -1,6 +1,6 @@ -set from = "paulsw.pw@gmail.com" +set from = "paulsw.pw@gmail.com" set sendmail = "/usr/bin/msmtp -a gmail" -set mbox = "+gmail/archive" +set mbox = "+gmail/archive" set postponed = "+gmail/drafts" color status red default diff --git a/mutt/accounts/vtluug b/mutt/accounts/vtluug new file mode 100644 index 0000000..fbda76d --- /dev/null +++ b/mutt/accounts/vtluug @@ -0,0 +1,7 @@ +set from = "pew@vtluug.org" +set imap_user = pew +set sendmail = "/usr/bin/msmtp -a vtluug" +set mbox = "+vtluug/archive" +set postponed = "+vtluug/drafts" + +color status red default diff --git a/mutt/msmtp.log b/mutt/msmtp.log new file mode 100644 index 0000000..f2b6b50 --- /dev/null +++ b/mutt/msmtp.log @@ -0,0 +1,8 @@ +Nov 22 16:36:32 host=smtp.gmail.com tls=on auth=on user=pwalko@vt.edu from=pwalko@vt.edu recipients=ocvt-officers-g@vt.edu mailsize=2822 smtpstatus=250 smtpmsg='250 2.0.0 OK 1511386642 l200sm2445213itl.36 - gsmtp' exitcode=EX_OK +Dec 05 19:47:47 host=587 tls=on auth=on user=pew from=pew@vtluug.org recipients=giggybyte@vt.edu errormsg='cannot connect to 587, port 25: Invalid argument' exitcode=EX_TEMPFAIL +Dec 05 19:49:18 host=587 tls=on auth=on user=pew from=pew@vtluug.org recipients=paul@walko.org errormsg='cannot connect to 587, port 25: Invalid argument' exitcode=EX_TEMPFAIL +Dec 05 19:51:19 host=465 tls=on auth=on user=pew from=pew@vtluug.org recipients=paul@walko.org errormsg='cannot connect to 465, port 25: Invalid argument' exitcode=EX_TEMPFAIL +Dec 05 19:52:20 host=587 tls=on auth=on user=pew from=pew@vtluug.org recipients=paul@walko.org errormsg='cannot connect to 587, port 25: Invalid argument' exitcode=EX_TEMPFAIL +Dec 05 19:53:34 host=587 tls=on auth=on user=pew from=pew@vtluug.org recipients=paul@walko.org errormsg='cannot connect to 587, port 25: Invalid argument' exitcode=EX_TEMPFAIL +Dec 05 19:53:42 host=acidburn.vtluug.org tls=on auth=on user=pew from=pew@vtluug.org recipients=paul@walko.org mailsize=65 smtpstatus=250 smtpmsg='250 2.0.0 Ok: queued as E0EF1140102' exitcode=EX_OK +Dec 05 19:54:46 host=acidburn.vtluug.org tls=on auth=on user=pew from=pew@vtluug.org recipients=dws@vt.edu mailsize=289 smtpstatus=250 smtpmsg='250 2.0.0 Ok: queued as 5D21A140102' exitcode=EX_OK diff --git a/mutt/muttrc b/mutt/muttrc index 7b8c2e8..e11af06 100644 --- a/mutt/muttrc +++ b/mutt/muttrc @@ -2,16 +2,16 @@ set realname = "Paul Walko" set sendmail = "/usr/bin/msmtp" set sendmail_wait = 0 -set editor = "vim" +set editor = "vim" # General things -set folder = ~/.mail +set folder = ~/.mail set mailcap_path = ~/.mutt/mailcap -set tmpdir = ~/Desktop/temp +set tmpdir = ~/Desktop/temp set wait_key = no set mbox_type = Maildir -set timeout = 3 +set timeout = 3 set mail_check = 0 unset move set delete @@ -45,9 +45,10 @@ bind attach view-mailcap macro pager \Cu "|urlview" "call urlview to open links" # Account Settings -set spoolfile = "+vt/INBOX" +set spoolfile = "+vtluug/INBOX" -mailboxes +vt/INBOX \ +mailboxes +vtluug/INBOX \ + +vt/INBOX \ +walko/INBOX \ +gmail/INBOX \ +vt/9_fall17 \ @@ -60,6 +61,7 @@ mailboxes +vt/INBOX \ +gmail/0_updates \ +gmail/1_social \ -folder-hook vt/* source ~/.mutt/accounts/vt -folder-hook walko/* source ~/.mutt/accounts/walko -folder-hook gmail/* source ~/.mutt/accounts/gmail +folder-hook vt/* source ~/.mutt/accounts/vt +folder-hook walko/* source ~/.mutt/accounts/walko +folder-hook gmail/* source ~/.mutt/accounts/gmail +folder-hook vtluug/* source ~/.mutt/accounts/vtluug diff --git a/offlineimaprc b/offlineimaprc index 439c697..272be4b 100644 --- a/offlineimaprc +++ b/offlineimaprc @@ -1,7 +1,7 @@ [general] ui = ttyui -accounts = vt, walko, gmail -maxsyncaccounts = 3 +accounts = vt, walko, gmail, vtluug +maxsyncaccounts = 4 pythonfile = ~/.mutt/offlineimap.py ############################ @@ -27,9 +27,16 @@ remoterepository = gmail-remote autorefresh = 0.5 quick = 10 +# vtluug +[Account vtluug] +localrepository = vtluug-local +remoterepository = vtluug-remote +autorefresh = 0.5 +quick = 10 + ########################### ### Repositories -# vt +## vt [Repository vt-local] type = Maildir localfolders = ~/.mail/vt @@ -64,11 +71,11 @@ folderfilter = lambda folder: folder not in [ '[Gmail]/Chats', ] -# walko +## walko [Repository walko-local] type = Maildir -localfolders = ~/.mail/walko -nametrans = lambda folder: { +localfolders = ~/.mail/walko +nametrans = lambda folder: { 'drafts': '[Gmail]/Drafts', 'sent': '[Gmail]/Sent Mail', 'flagged': '[Gmail]/Starred', @@ -98,7 +105,7 @@ folderfilter = lambda folder: folder not in [ '[Gmail]/Chats', ] -# gmail +## gmail [Repository gmail-local] type = Maildir localfolders = ~/.mail/gmail @@ -132,3 +139,20 @@ folderfilter = lambda folder: folder not in [ '[Gmail]/Important', '[Gmail]/Chats', ] + +## vtluug +[Repository vtluug-local] +type = Maildir +localfolders = ~/.mail/vtluug + +[Repository vtluug-remote] +sslcacertfile = /etc/ssl/certs/ca-certificates.crt +maxconnections = 1 +type = IMAP +remotehost = acidburn.vtluug.org +ssl = yes +keepalive = 60 +holdconnectionopen = yes +remoteuser = pew +remotepasseval = get_pass("vtluug") +realdelete = no diff --git a/zshrc b/zshrc index 116ac84..46f0b3a 100644 --- a/zshrc +++ b/zshrc @@ -17,7 +17,7 @@ export ZSH=$HOME/.oh-my-zsh ZSH_THEME="steeef" ## Plugins -plugins=(git vi-mode history-substring-search) +plugins=(git history-substring-search) source $ZSH/oh-my-zsh.sh