diff options
author | Ryan Kavanagh <rak@debian.org> | 2017-02-06 11:18:02 -0500 |
---|---|---|
committer | Ryan Kavanagh <rak@debian.org> | 2017-02-06 11:18:02 -0500 |
commit | 9dc2cc55b0360294200e1628e6d57ce4458cdd16 (patch) | |
tree | cdfb756055643f5b8f3d99e9e9cb4424050fbb96 /.imapfilter | |
parent | Update imapfilter (diff) |
More filters for imap
Diffstat (limited to '.imapfilter')
-rw-r--r-- | .imapfilter/config.lua | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/.imapfilter/config.lua b/.imapfilter/config.lua index cb73fb7..118bbe7 100644 --- a/.imapfilter/config.lua +++ b/.imapfilter/config.lua @@ -167,8 +167,9 @@ slashdot = ( GMAIL.INBOX:is_seen() * GMAIL.INBOX:match_from('slashdot@newsletters.slashdot.org') ) GMAIL.INBOX:move_messages(GMAIL['Slashdot'], slashdot) -- -lwn = ( GMAIL.INBOX:is_seen() * - GMAIL.INBOX:match_from('lwn.*@lwn.net') ) +lwn = ( GMAIL.INBOX:is_seen() + + GMAIL.INBOX:is_older(7) ) + * GMAIL.INBOX:match_from('lwn.*@lwn.net') GMAIL.INBOX:move_messages(GMAIL['lwn'], lwn) sbuild = GMAIL.INBOX:match_from('sbuild@.*.ryanak.ca') + @@ -228,6 +229,7 @@ GMAIL.INBOX:move_messages(GMAIL['Internship' .. folder_sep .. 'complogic'], comp -- MIT under GMAIL mitplv = ( GMAIL.INBOX:contain_field('List-Id', 'plv.csail.mit.edu') + + GMAIL.INBOX:contain_field('List-Id', 'plv.lists.csail.mit.edu') + GMAIL.INBOX:contain_field('List-Id', 'bedrock-group.lists.csail.mit.edu') ) * ( GMAIL.INBOX:is_older(1) + GMAIL.INBOX:is_seen() ) @@ -242,6 +244,11 @@ typeslist = GMAIL.INBOX:contain_field('List-Id', 'types-list.lists.seas.upenn.ed GMAIL.INBOX:is_seen() GMAIL.INBOX:move_messages(GMAIL['Academia' .. folder_sep .. 'types-list'], typeslist) +categories = GMAIL.INBOX:contain_field('List-Id', 'maths-categories-seminar.lists.cam.ac.uk') + * ( GMAIL.INBOX:is_seen() + + GMAIL.INBOX:is_older(1) ) +GMAIL.INBOX:move_messages(GMAIL['Academia'], categories) + -- People bagpipes = GMAIL.INBOX:match_from('PM_EMAIL') + |