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 66a12ba219d52f3732ca2ea1e947af2148bfc3d6
parent 0aa2b04927d150ab1f4c93ce05f204e0ab2152c3
Author: Anders Damsgaard <andersd@riseup.net>
Date:   Tue, 28 Feb 2017 21:44:40 -0800

add noaa account

Diffstat:
M.msmtprc | 11+++++++++++
M.mutt/muttrc | 11++++++++++-
M.offlineimaprc | 63++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
3 files changed, 83 insertions(+), 2 deletions(-)

diff --git a/.msmtprc b/.msmtprc @@ -69,3 +69,14 @@ tls on tls_certcheck on tls_trust_file ~/.mutt/ca-certificates.crt tls_starttls on + +account noaa +host smtp.gmail.com +port 587 +protocol smtp +auth on +from anders.damsgaard@noaa.gov +user anders.damsgaard@noaa.gov +tls on +tls_trust_file ~/.mutt/ca-certificates.crt + diff --git a/.mutt/muttrc b/.mutt/muttrc @@ -43,9 +43,16 @@ folder-hook princeton 'set \ signature=~/.signature\ sendmail = "msmtp -a princeton"' +folder-hook noaa 'set \ + from="Anders Damsgaard <anders.damsgaard@noaa.gov> "\ + realname="Anders Damsgaard"\ + record=+noaa/[Gmail].Sent\ Mail\ + postponed=+noaa/[Gmail].Drafts\ + sendmail = "msmtp -a noaa"' + # 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|andersd@princeton.edu +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|anders.damsgaard@noaa.gov # Cache files set header_cache=~/.mutt/cache/headers @@ -154,6 +161,8 @@ macro index \ $ "<change-folder>=gmail/[Gmail].Sent\ Mail/<enter>" "Go to Gmail 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" +macro index \ 6 "<change-folder>=noaa/INBOX/<enter>" "Go to NOAA inbox" +macro index \ ^ "<change-folder>=noaa/[Gmail].Sent\ Mail/<enter>" "Go to NOAA sent" # mutt-sidebar diff --git a/.offlineimaprc b/.offlineimaprc @@ -7,7 +7,7 @@ [general] # List of accounts to be synced, separated by a comma. #accounts = riseup,geomail -accounts = riseup,geomail,ucsd,gmail +accounts = riseup,geomail,ucsd,gmail,princeton,noaa # Suppress nothing but errors #ui = quiet ui = ttyui @@ -299,3 +299,64 @@ cert_fingerprint = 0855b2039ba7540c2f53f186bfc34fde80468fad # is not set. #holdconnectionopen = yes +[Account noaa] +# Identifier for the local repository; e.g. the maildir to be synced via IMAP. +localrepository = noaa-local +# Identifier for the remote repository; i.e. the actual IMAP, usually non-local. +remoterepository = noaa-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 noaa-local] +# Currently, offlineimap only supports maildir and IMAP for local repositories. +type = Maildir +# Where should the mail be placed? +localfolders = ~/Mail/noaa +nametrans = lambda folder: {'drafts': '[Gmail]/Drafts', + 'sent': '[Gmail]/Sent Mail', + 'flagged': '[Gmail]/Starred', + 'trash': '[Gmail]/Trash', + 'archive': '[Gmail]/All Mail', + }.get(folder, folder) + +[Repository noaa-remote] +# Remote repos can be IMAP or Gmail, the latter being a preconfigured IMAP. +type = Gmail +remoteuser = anders.damsgaard@noaa.gov +remotepasseval = get_keychain_pass(account="anders.damsgaard@noaa.gov", server="imap.gmail.com") +auth_mechanisms = LOGIN +realdelete = no +nametrans = lambda folder: {'drafts': '[Gmail]/Drafts', + 'sent': '[Gmail]/Sent Mail', + 'flagged': '[Gmail]/Starred', + 'trash': '[Gmail]/Trash', + 'archive': '[Gmail]/All Mail', + }.get(folder, folder) +#cert_fingerprint = c1a3bb1a8617af4a28ee2e0cd494533c3cd70bf8 +#cert_fingerprint = fc0a6ba4bf46851bcea02c6a438de63f6811165b,5f9f9598bf27cce4a97762336a753b8c07878564,f0b04600b419486538ace149e3615c7d94953c87 +ssl=true +# install openssl from homebrew +sslcacertfile=/usr/local/etc/openssl/cert.pem + +#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 + +