diff options
author | Camil Staps | 2017-01-24 19:23:35 +0100 |
---|---|---|
committer | Camil Staps | 2017-01-24 19:23:35 +0100 |
commit | b9bc6cbb9ca4992056fa91da8cb59d3194378c54 (patch) | |
tree | bf15c9760fccb103fd46ee6a9be9d954f3c2a3d5 /email | |
parent | Stowify repo (diff) |
Email
Diffstat (limited to 'email')
-rw-r--r-- | email/.msmtprc | 25 | ||||
-rw-r--r-- | email/.mutt/accounts/personal.muttrc | 7 | ||||
-rw-r--r-- | email/.mutt/accounts/radboud.muttrc | 7 | ||||
-rw-r--r-- | email/.mutt/accounts/vivisoft.muttrc | 7 | ||||
-rw-r--r-- | email/.mutt/colourscheme.muttrc | 20 | ||||
-rw-r--r-- | email/.mutt/gpg.muttrc | 6 | ||||
-rw-r--r-- | email/.mutt/muttrc | 44 | ||||
-rw-r--r-- | email/.mutt/sidebar.muttrc | 16 | ||||
-rw-r--r-- | email/.notmuch-config | 88 | ||||
-rw-r--r-- | email/.offlineimaprc | 62 | ||||
-rw-r--r-- | email/aux/offlineimap.py | 7 |
11 files changed, 289 insertions, 0 deletions
diff --git a/email/.msmtprc b/email/.msmtprc new file mode 100644 index 0000000..747bc00 --- /dev/null +++ b/email/.msmtprc @@ -0,0 +1,25 @@ +defaults +host mail.camilstaps.nl +port 587 +protocol smtp +auth plain +tls on +tls_trust_file /etc/ssl/certs/ca-certificates.crt + +account personal +from info@camilstaps.nl +user info@camilstaps.nl +passwordeval pass 'Personal/Email info@camilstaps.nl' + +account vivisoft +from info@vivisoft.nl +user info@vivisoft.nl +passwordeval pass 'ViviSoft/Email info@vivisoft.nl' + +account radboud +host mail.ru.nl +from c.staps@student.ru.nl +user c.staps@student.ru.nl +passwordeval pass 'Personal/Radboud' + +account default : personal diff --git a/email/.mutt/accounts/personal.muttrc b/email/.mutt/accounts/personal.muttrc new file mode 100644 index 0000000..b08ea82 --- /dev/null +++ b/email/.mutt/accounts/personal.muttrc @@ -0,0 +1,7 @@ +set from=info@camilstaps.nl +set sendmail="msmtp -a personal" +set spoolfile=+Personal/INBOX +set postponed=+Personal/Drafts +set record=+Personal/INBOX.Sent + +color status black blue diff --git a/email/.mutt/accounts/radboud.muttrc b/email/.mutt/accounts/radboud.muttrc new file mode 100644 index 0000000..55ff836 --- /dev/null +++ b/email/.mutt/accounts/radboud.muttrc @@ -0,0 +1,7 @@ +set from=c.staps@student.ru.nl +set sendmail="msmtp -a radboud" +set spoolfile=+Radboud/INBOX +set postponed=+Radboud/Drafts +set record=+Radboud/Verzonden\ items + +color status black red diff --git a/email/.mutt/accounts/vivisoft.muttrc b/email/.mutt/accounts/vivisoft.muttrc new file mode 100644 index 0000000..9a2fa75 --- /dev/null +++ b/email/.mutt/accounts/vivisoft.muttrc @@ -0,0 +1,7 @@ +set from=info@vivisoft.nl +set sendmail="msmtp -a vivisoft" +set spoolfile=+ViviSoft/INBOX +set postponed=+ViviSoft/Drafts +set record=+ViviSoft/INBOX.Sent + +color status black yellow diff --git a/email/.mutt/colourscheme.muttrc b/email/.mutt/colourscheme.muttrc new file mode 100644 index 0000000..59cec25 --- /dev/null +++ b/email/.mutt/colourscheme.muttrc @@ -0,0 +1,20 @@ +color normal white default +color attachment brightyellow default +color hdrdefault cyan default +color indicator black cyan +color markers brightred default +color quoted green default +color signature cyan default +color status brightgreen blue +color tilde blue default +color tree red default +color body brightred default [\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+ +color body brightblue default (https?|ftp)://[\-\.\,/%~_:?\#a-zA-Z0-9]+ +color quoted1 brightyellow default +color quoted2 red default +color index green default ~p +color index brightyellow default ~N +color index brightyellow default ~O +color index blue default ~T +color index red default ~D +color index brightblue default ~F diff --git a/email/.mutt/gpg.muttrc b/email/.mutt/gpg.muttrc new file mode 100644 index 0000000..87d7316 --- /dev/null +++ b/email/.mutt/gpg.muttrc @@ -0,0 +1,6 @@ +set crypt_use_gpgme=yes +set crypt_autosign +set crypt_replysign +set crypt_replysignencrypted=yes +set crypt_verify_sig=yes +message-hook '!(~g|~G) ~b"^-----BEGIN\ PGP\ (SIGNED\ )?MESSAGE"' "exec check-traditional-pgp" diff --git a/email/.mutt/muttrc b/email/.mutt/muttrc new file mode 100644 index 0000000..f0cf66b --- /dev/null +++ b/email/.mutt/muttrc @@ -0,0 +1,44 @@ +# General +set editor=`echo \$EDITOR` +set send_charset="us-ascii:utf-8" +set edit_headers=yes + +unset user_agent +my_hdr User-Agent: No You Don't Get My User-Agent 1.0 +set realname="Camil Staps" +set use_from=yes +set envelope_from=yes +set send_charset="us-ascii:utf-8" + +macro index,pager $ "<shell-escape>offlineimap; echo done<enter><sync-mailbox>" "Refresh" +macro pager,attach B "<pipe-entry>firefox \"data:text/html;base64,$(base64 -w 0 <&0)\"<enter>" + +set mbox_type=Maildir +set folder="/home/camil/.mutt/mail/" + +set sort_browser=alpha +set sort=threads +set sort_aux=date +set duplicate_threads=yes + +ignore headers * +unignore headers from to subject date cc + +set pager_index_lines=20 +set pager_context=3 +set pager_stop +set menu_scroll +set tilde +set quote_regexp="^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+" + +source ~/.mutt/mailboxes + +source ~/.mutt/colourscheme.muttrc +source ~/.mutt/gpg.muttrc +source ~/.mutt/sidebar.muttrc + +source ~/.mutt/accounts/personal.muttrc + +folder-hook ./Personal/* source ~/.mutt/accounts/personal.muttrc +folder-hook ./ViviSoft/* source ~/.mutt/accounts/vivisoft.muttrc +folder-hook ./Radboud/* source ~/.mutt/accounts/radboud.muttrc diff --git a/email/.mutt/sidebar.muttrc b/email/.mutt/sidebar.muttrc new file mode 100644 index 0000000..e186d78 --- /dev/null +++ b/email/.mutt/sidebar.muttrc @@ -0,0 +1,16 @@ +# Settings +set sidebar_visible = yes +set sidebar_width = 45 +set sidebar_next_new_wrap = yes +set mail_check_stats +set sidebar_format = '%B%?F? [%F]?%* %?N?%N/?%S' +set sidebar_sort_method = 'path' + +# Keybindings +bind index,pager \Cj sidebar-prev +bind index,pager \Ck sidebar-next +bind index,pager \Cl sidebar-open +#bind index,pager B sidebar-toggle-visible + +# Colors +color indicator cyan black diff --git a/email/.notmuch-config b/email/.notmuch-config new file mode 100644 index 0000000..4ffdc3a --- /dev/null +++ b/email/.notmuch-config @@ -0,0 +1,88 @@ +# .notmuch-config - Configuration file for the notmuch mail system +# +# For more information about notmuch, see http://notmuchmail.org + +# Database configuration +# +# The only value supported here is 'path' which should be the top-level +# directory where your mail currently exists and to where mail will be +# delivered in the future. Files should be individual email messages. +# Notmuch will store its database within a sub-directory of the path +# configured here named ".notmuch". +# +[database] +path=/home/camil/.mutt/mail + +# User configuration +# +# Here is where you can let notmuch know how you would like to be +# addressed. Valid settings are +# +# name Your full name. +# primary_email Your primary email address. +# other_email A list (separated by ';') of other email addresses +# at which you receive email. +# +# Notmuch will use the various email addresses configured here when +# formatting replies. It will avoid including your own addresses in the +# recipient list of replies, and will set the From address based on the +# address to which the original email was addressed. +# +[user] +name=Camil Staps +primary_email=info@camilstaps.nl +other_email=info@vivisoft.nl;c.staps@student.ru.nl;pd7lol@camilstaps.nl; + +# Configuration for "notmuch new" +# +# The following options are supported here: +# +# tags A list (separated by ';') of the tags that will be +# added to all messages incorporated by "notmuch new". +# +# ignore A list (separated by ';') of file and directory names +# that will not be searched for messages by "notmuch new". +# +# NOTE: *Every* file/directory that goes by one of those +# names will be ignored, independent of its depth/location +# in the mail store. +# +[new] +tags=unread;inbox; +ignore= + +# Search configuration +# +# The following option is supported here: +# +# exclude_tags +# A ;-separated list of tags that will be excluded from +# search results by default. Using an excluded tag in a +# query will override that exclusion. +# +[search] +exclude_tags=deleted;spam; + +# Maildir compatibility configuration +# +# The following option is supported here: +# +# synchronize_flags Valid values are true and false. +# +# If true, then the following maildir flags (in message filenames) +# will be synchronized with the corresponding notmuch tags: +# +# Flag Tag +# ---- ------- +# D draft +# F flagged +# P passed +# R replied +# S unread (added when 'S' flag is not present) +# +# The "notmuch new" command will notice flag changes in filenames +# and update tags, while the "notmuch tag" and "notmuch restore" +# commands will notice tag changes and update flags in filenames +# +[maildir] +synchronize_flags=true diff --git a/email/.offlineimaprc b/email/.offlineimaprc new file mode 100644 index 0000000..6c07a1b --- /dev/null +++ b/email/.offlineimaprc @@ -0,0 +1,62 @@ +[general] +pythonfile = ~/aux/offlineimap.py +ui = quiet +accounts = Personal,ViviSoft,Radboud + +[Account Personal] +localrepository = Personal-Local +remoterepository = Personal-Remote + +[Repository Personal-Local] +type = Maildir +localfolders = ~/.mutt/mail/Personal + +[Repository Personal-Remote] +type = IMAP +remotepasseval = passwd('Personal/Email info@camilstaps.nl') +remotehost = mail.camilstaps.nl +remoteuser = info@camilstaps.nl +ssl = yes +cert_fingerprint = c74f6f6e0cd2a8a7c905b620ea79e7d7e589778c + +[Account ViviSoft] +localrepository = ViviSoft-Local +remoterepository = ViviSoft-Remote + +[Repository ViviSoft-Local] +type = Maildir +localfolders = ~/.mutt/mail/ViviSoft + +[Repository ViviSoft-Remote] +type = IMAP +remotepasseval = passwd('ViviSoft/eMail/Email info@vivisoft.nl') +remotehost = mail.vivisoft.nl +remoteuser = info@vivisoft.nl +ssl = yes +cert_fingerprint = 708c7200cbd1f91da214f9406d784380fd2fa72e + +[Account Radboud] +localrepository = Radboud-Local +remoterepository = Radboud-Remote + +[Repository Radboud-Local] +type = Maildir +localfolders = ~/.mutt/mail/Radboud + +[Repository Radboud-Remote] +type = IMAP +remotepasseval = passwd('Personal/Radboud') +remotehost = mail.ru.nl +remoteuser = c.staps@student.ru.nl +ssl = yes + +[mbnames] +enabled = yes +filename = ~/.mutt/mailboxes +header = "mailboxes " +peritem = "~/.mutt/mail/%(accountname)s/%(foldername)s" +sep = " " +footer = "\n" +incremental = "yes" + +; vim: set ft=dosini: diff --git a/email/aux/offlineimap.py b/email/aux/offlineimap.py new file mode 100644 index 0000000..8fdfddd --- /dev/null +++ b/email/aux/offlineimap.py @@ -0,0 +1,7 @@ +import subprocess + +def passwd(name): + print("pass '" + name + "'") + return subprocess.\ + check_output("pass '" + name + "'", shell='/bin/bash').\ + splitlines()[0].strip() |