From ba391a12bcddee0ca1493c6b3cb9dd31c3b605ee Mon Sep 17 00:00:00 2001
From: Ryan Kavanagh <rak@debian.org>
Date: Mon, 4 Sep 2017 14:07:10 -0400
Subject: Extend imapfilter

---
 .imapfilter/config.lua | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

(limited to '.imapfilter')

diff --git a/.imapfilter/config.lua b/.imapfilter/config.lua
index ab86b5d..0fc6b5b 100644
--- a/.imapfilter/config.lua
+++ b/.imapfilter/config.lua
@@ -199,8 +199,9 @@ PiA = GMAIL.INBOX:match_from('.*@philosophyinaction.com') *
       GMAIL.INBOX:is_seen()
 GMAIL.INBOX:move_messages(GMAIL['PiA'], PiA)
 
-epstein = GMAIL.INBOX:match_from('support@industrialprogress.net') *
-          GMAIL.INBOX:is_seen()
+epstein = ( GMAIL.INBOX:match_from('support@industrialprogress.net')
+          + GMAIL.INBOX:match_from('alex@alexepstein.com') )
+          * GMAIL.INBOX:is_seen()
 GMAIL.INBOX:move_messages(GMAIL['Epstein'], epstein)
 
 -- Queen's
@@ -250,6 +251,12 @@ categories = GMAIL.INBOX:contain_field('List-Id', 'maths-categories-seminar.list
                + GMAIL.INBOX:is_older(1) )
 GMAIL.INBOX:move_messages(GMAIL['Academia'], categories)
 
+
+fields = GMAIL.INBOX:match_from('gensci@fields.utoronto.ca')
+       * ( GMAIL.INBOX:is_old()
+         + GMAIL.INBOX:is_seen() )
+fields = GMAIL.INBOX:move_messages(GMAIL['Academia'], fields)
+
 -- People
 
 bagpipes = GMAIL.INBOX:match_from('PM_EMAIL') +
@@ -273,3 +280,7 @@ GMAIL.INBOX:move_messages(GMAIL['VfR'], vfr)
 
 epic = GMAIL.INBOX:contain_field('List-Id', 'Every Pub In Cambridge <epic.einval.com>')
 GMAIL.INBOX:move_messages(GMAIL['Internship' .. folder_sep .. 'epic'], epic)
+
+banks = GMAIL.INBOX:match_from('pncalerts@pnc.com') *
+        GMAIL.INBOX:is_seen()
+GMAIL.INBOX:move_messages(GMAIL['banks'], banks)
-- 
cgit v1.2.3