summaryrefslogtreecommitdiff
path: root/shared
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2012-07-28 11:38:40 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2012-07-28 11:38:40 +0100
commit423ce84b1877b8efca404221b1fdb0488e6cb6db (patch)
tree4f47243e47f54cc571758af0ab66db6936af8585 /shared
downloadresources-423ce84b1877b8efca404221b1fdb0488e6cb6db.tar.bz2
RES: Initial crud
Diffstat (limited to 'shared')
-rw-r--r--shared/codethink.sieve14
-rw-r--r--shared/dsilvers@digital-scurf.org.sieve100
-rw-r--r--shared/simtec.sieve95
-rwxr-xr-xshared/uploadsieve2
4 files changed, 211 insertions, 0 deletions
diff --git a/shared/codethink.sieve b/shared/codethink.sieve
new file mode 100644
index 0000000..095cbef
--- /dev/null
+++ b/shared/codethink.sieve
@@ -0,0 +1,14 @@
+# Sieve script for danielsilverstone
+
+require "fileinto";
+require "reject";
+require "envelope";
+
+## Mailing lists ####################################
+
+if header :contains "List-Id" ["baserock-dev"] {
+ fileinto "Baserock.Dev";
+ stop;
+}
+
+
diff --git a/shared/dsilvers@digital-scurf.org.sieve b/shared/dsilvers@digital-scurf.org.sieve
new file mode 100644
index 0000000..e59a819
--- /dev/null
+++ b/shared/dsilvers@digital-scurf.org.sieve
@@ -0,0 +1,100 @@
+# Sieve script for dsilvers@digital-scurf.org
+
+require "fileinto";
+require "imap4flags";
+require "reject";
+require "envelope";
+require "subaddress";
+
+# DSPAM Tagging (since sieve bypasses DSpam)
+if header :contains "X-DSPAM-Result" ["Spam"] {
+ setflag "\\Seen";
+ fileinto "SpamCaught";
+ stop;
+}
+
+if envelope :detail "to" "spammyspam" {
+ fileinto "SpamCaught";
+ stop;
+}
+
+## Mailing lists ####################################
+
+if header :contains "List-Id" ["lua-l"] {
+ fileinto "Lists.Lua";
+ stop;
+}
+
+if header :contains "List-Id" ["awesome-devel.naquadah.org"] {
+ fileinto "Lists.Awesome";
+ stop;
+}
+
+if header :contains "List-Id" ["debian-devel-announce"] {
+ fileinto "Lists.Debian.Devel-Announce";
+ stop;
+}
+
+if header :contains "List-Id" ["debian-uk"] {
+ fileinto "Lists.Debian.UK";
+ stop;
+}
+
+if header :contains "List-Id" ["levenshulme"] {
+ fileinto "Lists.Levenshulme";
+ stop;
+}
+
+if header :contains "List-Id" ["netsurf-dev"] {
+ fileinto "Lists.netsurf";
+ stop;
+}
+
+if header :contains "List-Id" ["netsurf-commits"] {
+ fileinto "Lists.netsurf.commits";
+ stop;
+}
+
+if header :contains "List-Id" ["netsurf-gsoc"] {
+ fileinto "Lists.netsurf.gsoc-private";
+ stop;
+}
+
+if header :contains "List-Id" ["netsurf-users"] {
+ fileinto "Lists.netsurf.users";
+ stop;
+}
+
+if header :contains "List-Id" ["entropykey"] {
+ fileinto "Lists.EntropyKey";
+ stop;
+}
+
+## Old Job related filters #########################################
+
+if anyof (
+ header :contains "To" ["simtec.co.uk"],
+ header :contains "From" ["simtec.co.uk"],
+ header :contains "Cc" ["simtec.co.uk"]
+ ) {
+ fileinto "Simtec";
+ stop;
+}
+
+if anyof (
+ header :contains "From" ["canonical.com"],
+ header :contains "To" ["canonical.com"],
+ header :contains "From" ["ubuntu.com"],
+ header :contains "To" ["ubuntu.com"]
+ ) {
+ fileinto "Canonical";
+ stop;
+}
+
+## Personal Filters ##############################################
+
+if header :contains "From" ["littletank"] {
+ fileinto "Family";
+ stop;
+}
+
diff --git a/shared/simtec.sieve b/shared/simtec.sieve
new file mode 100644
index 0000000..bd0f571
--- /dev/null
+++ b/shared/simtec.sieve
@@ -0,0 +1,95 @@
+# Backup of Simtec sieve rules for later.
+
+## Simtec Lists ######################################################
+
+if header :contains "List-Id" ["support.simtec.co.uk"] {
+ fileinto "Simtec.support";
+ stop;
+}
+
+if header :contains "List-Id" ["software-group.lists.simtec.co.uk"] {
+ fileinto "Simtec.software-group";
+ stop;
+}
+
+if header :contains "List-Id" ["linux.simtec.co.uk"] {
+ fileinto "Simtec.linux";
+ stop;
+}
+
+if header :contains "List-Id" ["code-review.lists.simtec.co.uk"] {
+ fileinto "Simtec.code-review";
+ stop;
+}
+
+if header :contains "List-Id" ["entropykey"] {
+ fileinto "Simtec.EntropyKey.dev";
+ stop;
+}
+
+## Simtec Customers Lists ##########################################
+
+if header :contains "List-Id" ["datong-commod.lists.simtec.co.uk"] {
+ fileinto "Simtec.Customers.datong-commod";
+ stop;
+}
+
+if header :contains "List-Id" ["wolfson-simtec-dev.lists.simtec.co.uk"] {
+ fileinto "Simtec.Customers.Wolfson";
+ stop;
+}
+
+if header :contains "List-Id" ["ynic.lists.simtec.co.uk"] {
+ fileinto "Simtec.Customers.ynic";
+ stop;
+}
+
+if header :contains "List-Id" ["ynic-code-review.lists.simtec.co.uk"] {
+ fileinto "Simtec.Customers.ynic.code-review";
+ stop;
+}
+
+## Simtec filters ##################################################
+
+if anyof (
+ header :contains "To" ["ekey@simtec.co.uk"],
+ header :contains "From" ["ekey@simtec.co.uk"],
+ header :contains "Cc" ["ekey@simtec.co.uk"]
+ ) {
+ fileinto "Simtec.EntropyKey";
+ stop;
+}
+
+if allof (
+ header :contains "To" ["root@"],
+ header :contains "To" ["simtec"]
+ ) {
+ fileinto "Simtec.Cron";
+ stop;
+}
+
+if allof (
+ header :contains "To" ["Cron"],
+ header :contains "To" ["simtec"]
+ ) {
+ fileinto "Simtec.Cron";
+ stop;
+}
+
+if allof (
+ header :contains "From" ["Cron"],
+ header :contains "From" ["simtec"]
+ ) {
+ fileinto "Simtec.Cron";
+ stop;
+}
+
+if anyof (
+ header :contains "To" ["sysadmin@simtec.co.uk"],
+ header :contains "From" ["sysadmin@simtec.co.uk"],
+ header :contains "Cc" ["sysadmin@simtec.co.uk"]
+ ) {
+ fileinto "Simtec.Sysadmin";
+ stop;
+}
+
diff --git a/shared/uploadsieve b/shared/uploadsieve
new file mode 100755
index 0000000..8d747b6
--- /dev/null
+++ b/shared/uploadsieve
@@ -0,0 +1,2 @@
+#!/bin/sh -x
+sieve-connect --4 -s secure.pepperfish.net -u dsilvers@digital-scurf.org --localsieve dsilvers@digital-scurf.org.sieve --remotesieve default --upload