aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.imapfilter/config.lua10
1 files changed, 8 insertions, 2 deletions
diff --git a/.imapfilter/config.lua b/.imapfilter/config.lua
index 0fc6b5b..3b8492a 100644
--- a/.imapfilter/config.lua
+++ b/.imapfilter/config.lua
@@ -278,9 +278,15 @@ vfr = GMAIL.INBOX:match_from('vfr-no-reply@aynrand.org') *
GMAIL.INBOX:is_seen()
GMAIL.INBOX:move_messages(GMAIL['VfR'], vfr)
+ari = GMAIL.INBOX:match_from('Impact@aynrand.org')
+ * GMAIL.INBOX:is_seen()
+GMAIL.INBOX:move_messages(GMAIL['ARI'], ari)
+
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()
+banks = ( GMAIL.INBOX:match_from('pncalerts@pnc.com')
+ + GMAIL.INBOX:match_from('discover@service.discover.com') )
+ * ( GMAIL.INBOX:is_seen()
+ + GMAIL.INBOX:is_older(7) )
GMAIL.INBOX:move_messages(GMAIL['banks'], banks)