aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2021-08-18 23:43:22 +0200
committerPatrick Spek <p.spek@tyil.nl>2021-08-18 23:43:22 +0200
commit34db13814348dd92bba5fd45a311aada6b545aeb (patch)
tree8e0eb2a017bc9494ad4f32945edffa2d17e5e77e
parent22034d9a5bcb9723d9b46a8411393648ec689889 (diff)
Add notmuch config
-rw-r--r--.config/notmuch/default/config88
-rwxr-xr-x.config/notmuch/default/hooks/post-new53
2 files changed, 141 insertions, 0 deletions
diff --git a/.config/notmuch/default/config b/.config/notmuch/default/config
new file mode 100644
index 0000000..d7a35c3
--- /dev/null
+++ b/.config/notmuch/default/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/tyil/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=
+primary_email=p.spek@tyil.nl
+other_email=helpdesk@huischinees.nl;tyil@freedom.nl;tyil@national.shitposting.agency;tyil@scriptkitties.church;
+
+# 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;archive;
+
+# 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/.config/notmuch/default/hooks/post-new b/.config/notmuch/default/hooks/post-new
new file mode 100755
index 0000000..ebe0ffa
--- /dev/null
+++ b/.config/notmuch/default/hooks/post-new
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+readonly M="notmuch tag "
+
+# Assorted finances
+$M +finances +invoices +arubacloud +dblug -- tag:inbox from:comunicazioni@staff.aruba.it to:dblug@tyil.nl
+$M +finances +invoices +arubacloud -- tag:inbox from:comunicazioni@staff.aruba.it subject:"confirmation top-up order"
+$M +finances +invoices +arubacloud -- tag:inbox from:comunicazioni@staff.aruba.it subject:"payment confirmation"
+$M +finances +invoices +freedom -- tag:inbox from:factuur@freedomnet.nl
+$M +finances +invoices +hetzner -- tag:inbox from:billing@hetzner.com
+$M +finances +invoices +leaseweb -- tag:inbox from:contractmanagement@leaseweb.com
+$M +finances +invoices +shurgard -- tag:inbox from:shurgard.eu subject:"your shurgard invoice"
+$M +finances +invoices +transip -- tag:inbox from:facturen@transip.nl
+$M +finances +invoices +youfone -- tag:inbox from:info@info.youfone.nl
+$M +finances +paypal -- tag:inbox from:service@paypal.nl
+
+# Mailing Lists
+$M +dblug -- tag:inbox to:discussion@lists.dblug.nl
+$M +free-writers-club -- tag:inbox to:~sircmpwn/free-writers-club@lists.sr.ht
+$M +free-writers-club -- tag:inbox to:~sircmpwn/free-writers-club@lists.sr.ht
+$M +raku +gsoc -- tag:inbox to:gsoc-2021-ideas@noreply.github.com
+$M +raku +raku-users -- tag:inbox to:perl6-users@perl.org
+$M +raku -- tag:inbox to:perl-foundation-outreach@googlegroups.com
+$M +raku +raku-steering-council -- tag:inbox to:rsc@raku.org
+$M +nllgg -- tag:inbox to:linux@lists.nllgg.nl
+$M +freerms -- tag:inbox to:~tyil/rms-support@lists.sr.ht
+
+# Work related
+$M +exxellence -- tag:inbox to:p.spek@exxell.onmicrosoft.com
+$M +exxellence -- tag:inbox from:*@exxellence.nl
+$M +jira -- tag:inbox from:jira@exxellence.atlassian.net
+
+# DMARC
+$M +dmarc -- tag:inbox subject:"Report domain: tyil.email"
+
+# Projects
+$M +github +raku -- tag:inbox from:notifications@github.com subject:raku
+
+# CI systems
+$M +trash -inbox -- tag:inbox from:notifications@github.com subject:"pr run failed"
+
+# Mails that I sent
+$M +sent +archive -inbox -- tag:inbox from:tyil@freedom.nl
+$M +sent +archive -inbox -- tag:inbox from:p.spek@tyil.nl
+$M +sent +archive -inbox -- tag:inbox from:p.spek@exxellence.nl
+$M +sent +archive -inbox -- tag:inbox from:p.spek@exxell.onmicrosoft.com
+
+# Shitty spammers
+$M +trash +spam -inbox -- tag:inbox to:marriott@niggers.nl subject:ritz-carlton
+$M +trash +spam -inbox -- tag:inbox to:marriott@niggers.nl from:ritz-carlton
+$M +trash +spam -inbox -- tag:inbox to:info@dblug.nl subject:boekhouder
+$M +trash +spam -inbox -- tag:inbox to:info@dblug.nl subject:incassobureau
+$M +trash +spam -inbox -- tag:inbox from:builds@circleci.com subject:rakudo/star