summaryrefslogtreecommitdiff
path: root/.config/maildirproc/att.rc
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-08-13 16:43:39 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-09-14 12:49:02 -0400
commit50af5a5e2141ff741bad602bdd0f41cf51e45a2e (patch)
treeca73f9514d90f5241d9c2616dc56b81f337b2feb /.config/maildirproc/att.rc
parentb6ca8ce55f0a850e18ef032dbe0aefffaf1be2ec (diff)
mail filters
Diffstat (limited to '.config/maildirproc/att.rc')
-rw-r--r--.config/maildirproc/att.rc9
1 files changed, 9 insertions, 0 deletions
diff --git a/.config/maildirproc/att.rc b/.config/maildirproc/att.rc
index 4532bec..e37b62f 100644
--- a/.config/maildirproc/att.rc
+++ b/.config/maildirproc/att.rc
@@ -101,6 +101,7 @@ def handle_incoming_unknown(mail):
# Whitelist
if (
False
+ or is_to_or_from(mail, "@purestorage.com")
or is_to_or_from(mail, "Bryan@ChankTunUnGi.onmicrosoft.com")
or is_to_or_from(mail, "cacnedcomms@gmail.com")
or is_to_or_from(mail, "fsf.org")
@@ -158,6 +159,10 @@ def handle_incoming_unknown(mail):
return
def my_filters(mail):
+ if is_to_or_from(mail,"@purestorage.com"):
+ move_ham(mail, ".purestorage")
+ return
+
# Sort mail from various mailing lists
# https://lists.gnu.org/mailman/options/bug-librejs/lukeshu@sbcglobal.net
# https://lists.nongnu.org/mailman/options/libreboot/lukeshu@sbcglobal.net
@@ -187,6 +192,10 @@ def my_filters(mail):
):
move_ham(mail, ".software.parabola")
return
+
+ if is_to_or_from(mail, "liberationtech-jobs@lists.stanford.edu"):
+ move_ham(mail, ".software.jobs")
+ return
# Sort mail from some social websites
if mail["From"].matches("facebook(|mail)\.com"):