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 9ed122d00d24f512c53fbc2a0a85392245b3a396
parent fbce7e2ed8aad2cbd611bf2962b41e173ba12075
Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date:   Wed, 24 Feb 2016 15:09:15 -0800

add imap and smtp config files

Diffstat:
A.msmtprc | 48++++++++++++++++++++++++++++++++++++++++++++++++
A.offlineimaprc | 212+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 260 insertions(+), 0 deletions(-)

diff --git a/.msmtprc b/.msmtprc @@ -0,0 +1,48 @@ +syslog LOG_MAIL +logfile /Users/adamsgaard/.msmtp.log + +account riseup +host mail.riseup.net +port 587 +auth on +user andersd +from andersd@riseup.net + +tls on +tls_certcheck on +tls_trust_file /Users/adamsgaard/.mutt/ca-certificates.crt + +account geomail +host asmtp.au.dk +port 587 +auth login +user au217756 +from anders.damsgaard@geo.au.dk + +tls on +tls_certcheck on +tls_trust_file /Users/adamsgaard/.mutt/ca-certificates.crt + +account ucsd +host smtp.ucsd.edu +port 465 +auth on +user adamsgaard +from adamsgaard@mail.ucsd.edu + +tls on +tls_certcheck on +tls_trust_file /Users/adamsgaard/.mutt/ca-certificates.crt +tls_starttls off + + +account gmail +host smtp.gmail.com +port 587 +protocol smtp +auth on +from andersdc@gmail.com +user andersdc@gmail.com +tls on +tls_trust_file /Users/adamsgaard/.mutt/ca-certificates.crt + diff --git a/.offlineimaprc b/.offlineimaprc @@ -0,0 +1,212 @@ +# Sample minimal config file. Copy this to ~/.offlineimaprc and edit to +# suit to get started fast. + +# passwords for offlineimap and msmtprc stored in OSX keychain +# http://stevelosh.com/blog/2012/10/the-homely-mutt/#getting-email + +[general] +# List of accounts to be synced, separated by a comma. +#accounts = riseup,geomail +accounts = riseup,geomail,ucsd,gmail +# Suppress nothing but errors +#ui = quiet +ui = ttyui +pythonfile=~/.mutt/offlineimap.py +# Controls how many accounts may be synced simultaneously +maxsyncaccounts = 2 + +[mbnames] +# Generate a muttrc fragment containing the mailboxes offlineimap syncs +enabled = yes +filename = ~/.mutt/mailboxes +header = "mailboxes " +peritem = "+%(accountname)s/%(foldername)s" +sep = " " +footer = "\n" + +[Account riseup] +# Identifier for the local repository; e.g. the maildir to be synced via IMAP. +localrepository = riseup-local +# Identifier for the remote repository; i.e. the actual IMAP, usually non-local. +remoterepository = riseup-remote +# Status cache. Default is plain, which eventually becomes huge and slow. +status_backend = sqlite + +# 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 riseup-local] +# Currently, offlineimap only supports maildir and IMAP for local repositories. +type = Maildir +# Where should the mail be placed? +localfolders = ~/Mail/riseup + +[Repository riseup-remote] +# Remote repos can be IMAP or Gmail, the latter being a preconfigured IMAP. +type = IMAP +remotehost = mail.riseup.net +remoteuser = andersd +remotepasseval = get_keychain_pass(account="andersd", server="mail.riseup.net") +ssl = yes +cert_fingerprint = bf27ee9ea504355fc9e933e7b624082329ea1003 +folderfilter = lambda folder: folder not in ['Drafts'] + +# 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 + + +[Account geomail] +# Identifier for the local repository; e.g. the maildir to be synced via IMAP. +localrepository = geomail-local +# Identifier for the remote repository; i.e. the actual IMAP, usually non-local. +remoterepository = geomail-remote +# Status cache. Default is plain, which eventually becomes huge and slow. +status_backend = sqlite + +# 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 geomail-local] +# Currently, offlineimap only supports maildir and IMAP for local repositories. +type = Maildir +# Where should the mail be placed? +localfolders = ~/Mail/geomail + +[Repository geomail-remote] +# Remote repos can be IMAP or Gmail, the latter being a preconfigured IMAP. +type = IMAP +remotehost = imap.au.dk +remoteuser = au217756 +remotepasseval = get_keychain_pass(account="au217756", server="imap.au.dk") +ssl = yes +cert_fingerprint = ae2c89d80632be3ec8a149225199e3cdcc88311f +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 + + +[Account ucsd] +# Identifier for the local repository; e.g. the maildir to be synced via IMAP. +localrepository = ucsd-local +# Identifier for the remote repository; i.e. the actual IMAP, usually non-local. +remoterepository = ucsd-remote +# Status cache. Default is plain, which eventually becomes huge and slow. +status_backend = sqlite + +# 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 ucsd-local] +# Currently, offlineimap only supports maildir and IMAP for local repositories. +type = Maildir +# Where should the mail be placed? +localfolders = ~/Mail/ucsd + +[Repository ucsd-remote] +# Remote repos can be IMAP or Gmail, the latter being a preconfigured IMAP. +type = IMAP +remotehost = mail.ucsd.edu +remoteuser = adamsgaard +remotepasseval = get_keychain_pass(account="adamsgaard", server="mail.ucsd.edu") +ssl = yes +cert_fingerprint = ec083b38e0a1942725d301d120893c1014701062 +#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 + + + +[Account gmail] +# Identifier for the local repository; e.g. the maildir to be synced via IMAP. +localrepository = gmail-local +# Identifier for the remote repository; i.e. the actual IMAP, usually non-local. +remoterepository = gmail-remote +# Status cache. Default is plain, which eventually becomes huge and slow. +status_backend = sqlite + +# 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 gmail-local] +# Currently, offlineimap only supports maildir and IMAP for local repositories. +type = Maildir +# Where should the mail be placed? +localfolders = ~/Mail/gmail +nametrans = lambda folder: {'drafts': '[Gmail]/Drafts', + 'sent': '[Gmail]/Sent Mail', + 'flagged': '[Gmail]/Starred', + 'trash': '[Gmail]/Trash', + 'archive': '[Gmail]/All Mail', + }.get(folder, folder) + +[Repository gmail-remote] +# Remote repos can be IMAP or Gmail, the latter being a preconfigured IMAP. +type = Gmail +remoteuser = andersdc@gmail.com +remotepass = get_keychain_pass(account="andersdc@gmail.com", server="imap.gmail.com") +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 = 71dfbe124d89ed9218f539a82d4127fbb4bc9997 + +#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 + + +