diff options
Diffstat (limited to 'email')
-rw-r--r-- | email/.config/alot/config | 12 | ||||
-rw-r--r-- | email/.mailcap | 1 | ||||
-rw-r--r-- | email/.mbsyncrc | 36 | ||||
-rw-r--r-- | email/.msmtprc | 20 | ||||
-rw-r--r-- | email/.notmuch-config | 88 | ||||
-rwxr-xr-x | email/Scripts/mailSync | 10 |
6 files changed, 167 insertions, 0 deletions
diff --git a/email/.config/alot/config b/email/.config/alot/config new file mode 100644 index 0000000..29a7642 --- /dev/null +++ b/email/.config/alot/config @@ -0,0 +1,12 @@ +quit_on_last_bclose = True + +[accounts] + [[work]] + realname = Julian T + address = julian@jtle.dk + gpg_key = BE0CE332 + sent_box = maildir://~/.mail/mailbox/sent + sendmail_command = msmtp -a mailbox -t + +[bindings] + q = bclose diff --git a/email/.mailcap b/email/.mailcap new file mode 100644 index 0000000..3906763 --- /dev/null +++ b/email/.mailcap @@ -0,0 +1 @@ +text/html; w3m -dump -o -document_charset=%{charset} %s; nametemplate=%s.html; copiousoutput diff --git a/email/.mbsyncrc b/email/.mbsyncrc new file mode 100644 index 0000000..0a8d5d6 --- /dev/null +++ b/email/.mbsyncrc @@ -0,0 +1,36 @@ +# Account info +IMAPAccount mailbox +Host imap.mailbox.org +User julian@jtle.dk +SSLType IMAPS +#PassCmd "echo ${PASSWORD:-$(pass show mail | head -n 1)}" +PassCmd "pass show mail | head -n 2" +AuthMechs LOGIN + +# Remote settings +IMAPStore mailbox-remote +Account mailbox + +# Local settings +MaildirStore mailbox-local +Subfolders Verbatim +# The trailing "/" is important +Path ~/.mail/mailbox/ +Inbox ~/.mail/mailbox/inbox + +# Connection +Channel mailbox-inbox +Master :mailbox-remote: +Slave :mailbox-local: +Patterns INBOX* +Create Both +SyncState * + +Channel mailbox-sent +Master :mailbox-remote:"Sent" +Slave :mailbox-local:sent +Create Both + +Group mailbox +Channel mailbox-inbox +Channel mailbox-sent diff --git a/email/.msmtprc b/email/.msmtprc new file mode 100644 index 0000000..7d8cc4f --- /dev/null +++ b/email/.msmtprc @@ -0,0 +1,20 @@ + +defaults +auth on +tls on +tls_trust_file /etc/ssl/certs/ca-certificates.crt +logfile ~/.msmtp.log + +# mailbox +account mailbox +host smtp.mailbox.org +port 465 +tls_starttls off +from julian@jtle.dk +user julian@jtle.dk +passwordeval "pass show mail | head -n 2" +auth on + + +# default account +account default : mailbox diff --git a/email/.notmuch-config b/email/.notmuch-config new file mode 100644 index 0000000..ef92cff --- /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 https://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/julian/.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=Julian T +primary_email=julian@jtle.dk +other_email=j@jtle.dk + +# 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=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/Scripts/mailSync b/email/Scripts/mailSync new file mode 100755 index 0000000..1ac88ac --- /dev/null +++ b/email/Scripts/mailSync @@ -0,0 +1,10 @@ +#!/bin/bash + +# Sync with IMAP +mbsync -a + +# Index the mails +notmuch new + +# Mark Sent mail +notmuch tag +sent -inbox -new folder:mailbox/sent |