From: Amin Bandali Date: Wed, 20 Jun 2018 02:59:52 +0000 (-0400) Subject: [rc/pigeonhole] forgot to include the sieve rules in last commit X-Git-Url: https://git.shemshak.org/~bandali/configs/commitdiff_plain/8e15d30089bdc7bf7b3d617cf5633b4568421228?ds=inline [rc/pigeonhole] forgot to include the sieve rules in last commit --- diff --git a/rc.org b/rc.org index 5abcf05..e144655 100644 --- a/rc.org +++ b/rc.org @@ -2282,6 +2282,53 @@ def prime_gpg_agent(): prime_gpg_agent() #+end_src +** pigeonhole +*** gnu.sieve +:PROPERTIES: +:header-args+: :tangle ~/sieve/gnu.sieve :comments none +:END: + +#+begin_src conf +require [ "regex", "variables", "fileinto", "envelope", "mailbox", "imap4flags", "include" ]; + +if anyof ( + address :is "from" "webmasters@gnu.org", + address :is "from" "webmasters-comment@gnu.org") { + fileinto :create "webmasters"; + stop; +} + +include :personal "lists"; +#+end_src + +*** lists.sieve +:PROPERTIES: +:header-args+: :tangle ~/sieve/lists.sieve :comments none +:END: + +#+begin_src conf +require [ "regex", "variables", "fileinto", "envelope", "mailbox", "imap4flags", + "include" ]; + +if anyof ( + header :contains "list-id" "", + header :contains "list-id" "", + header :contains "list-id" "", + header :contains "list-id" "", + header :contains "list-id" "", + header :contains "list-id" "", + header :contains "list-id" "", + header :contains "list-id" "", + header :contains "list-id" "", + header :contains "list-id" "", + header :contains "list-id" "") { + if header :regex "list-id" "<([a-z_0-9-]+)[.@]" { + set :lower "listname" "${1}"; + fileinto :create "l/${listname}"; + } +} +#+end_src + ** polybar *** config