dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 0aa2b04927d150ab1f4c93ce05f204e0ab2152c3
parent afb8657bb12cae09871a9653ce838cf55ef1f042
Author: Anders Damsgaard <andersd@riseup.net>
Date:   Mon, 27 Feb 2017 21:18:34 -0800

add princeton mail account

Diffstat:
M.msmtprc | 23+++++++++++++++++++++++
M.mutt/muttrc | 13++++++++++++-
M.offlineimaprc | 45+++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 80 insertions(+), 1 deletion(-)

diff --git a/.msmtprc b/.msmtprc @@ -46,3 +46,26 @@ user andersdc@gmail.com tls on tls_trust_file ~/.mutt/ca-certificates.crt +#account princeton +#host smtp.princeton.edu +#port 587 +#auth on +#user andersd +#from andersd@princeton.edu + +#tls on +#tls_certcheck on +#tls_trust_file ~/.mutt/ca-certificates.crt +#tls_starttls off + +account princeton +host smtp.princeton.edu +port 587 +auth on +user andersd +from andersd@princeton.edu + +tls on +tls_certcheck on +tls_trust_file ~/.mutt/ca-certificates.crt +tls_starttls on diff --git a/.mutt/muttrc b/.mutt/muttrc @@ -35,8 +35,17 @@ folder-hook gmail 'set \ postponed=+gmail/[Gmail].Drafts\ sendmail = "msmtp -a gmail"' +folder-hook princeton 'set \ + from="Anders Damsgaard <andersd@princeton.edu> "\ + realname="Anders Damsgaard"\ + record=+princeton/Sent\ Items\ + postponed=+princeton/Drafts\ + signature=~/.signature\ + sendmail = "msmtp -a princeton"' + + # ignore own e-mail addresses from group-reply -alternates adamsgaard@ucsd.edu|adamsgaard@mail.ucsd.edu|andersd@risuep.net|andersdc@gmail.com|adc@geo.au.dk|anders.damsgaard@geo.au.dk +alternates adamsgaard@ucsd.edu|adamsgaard@mail.ucsd.edu|andersd@risuep.net|andersdc@gmail.com|adc@geo.au.dk|anders.damsgaard@geo.au.dk|andersd@princeton.edu # Cache files set header_cache=~/.mutt/cache/headers @@ -143,6 +152,8 @@ macro index \ \# "<change-folder>=ucsd/Sent Items/<enter>" "Go to UCSD sent" macro index \ 4 "<change-folder>=gmail/INBOX/<enter>" "Go to Gmail inbox" macro index \ $ "<change-folder>=gmail/[Gmail].Sent\ Mail/<enter>" "Go to Gmail sent" macro index \ c "<change-folder>=geomail/INBOX.cryolist/<enter>" "Go to cryolist" +macro index \ 5 "<change-folder>=princeton/INBOX/<enter>" "Go to Princeton inbox" +macro index \ % "<change-folder>=princeton/Sent Items/<enter>" "Go to Princeton sent" # mutt-sidebar diff --git a/.offlineimaprc b/.offlineimaprc @@ -254,3 +254,48 @@ auth_mechanisms = PLAIN ssl = yes cert_fingerprint = 653087783af6e38b439b275bacba12777bdee9d1 #folderfilter = lambda folder: folder not in ['Drafts'] + + +[Account princeton] +# Identifier for the local repository; e.g. the maildir to be synced via IMAP. +localrepository = princeton-local +# Identifier for the remote repository; i.e. the actual IMAP, usually non-local. +remoterepository = princeton-remote +# Status cache. Default is plain, which eventually becomes huge and slow. +status_backend = sqlite +postsynchook = notmuch new + +# Minutes between syncs +#autorefresh = 5 +# Number of quick-syncs between autorefreshes. Quick-syncs do not update if the +# only changes were to IMAP flags +#quick = 10 + +[Repository princeton-local] +# Currently, offlineimap only supports maildir and IMAP for local repositories. +type = Maildir +# Where should the mail be placed? +localfolders = ~/Mail/princeton + +[Repository princeton-remote] +# Remote repos can be IMAP or Gmail, the latter being a preconfigured IMAP. +type = IMAP +remotehost = exchangeimap.princeton.edu +remoteuser = andersd +remotepasseval = get_keychain_pass(account="andersd", server="exchangeimap.princeton.edu") +ssl = yes +cert_fingerprint = 0855b2039ba7540c2f53f186bfc34fde80468fad +#folderfilter = lambda folder: folder not in ['Kalender','Kontaktpersoner','Slettet post','NFIT-Import-adc-2012-09-11-04:18'] + +# Instead of closing the connection once a sync is complete, offlineimap will +# send empty data to the server to hold the connection open. A value of 60 +# attempts to hold the connection for a minute between syncs (both quick and +# autorefresh).This setting has no effect if autorefresh and holdconnectionopen +# are not both set. +#keepalive = 60 +# OfflineIMAP normally closes IMAP server connections between refreshes if +# the global option autorefresh is specified. If you wish it to keep the +# connection open, set this to true. This setting has no effect if autorefresh +# is not set. +#holdconnectionopen = yes +