From db7aa12ebe6fd14ce9b2cf4883f2fc32bf67f083 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Sun, 18 Mar 2018 13:02:13 -0400 Subject: Deal with salsa too --- .imapfilter/config.lua | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to '.imapfilter') diff --git a/.imapfilter/config.lua b/.imapfilter/config.lua index 507018e..5afe316 100644 --- a/.imapfilter/config.lua +++ b/.imapfilter/config.lua @@ -76,17 +76,24 @@ for list = 1, #tracker do end alioth = { 'pkg-kde-commits' - , 'pkg-kde-extras' - , 'pkg-kde-talk' - , 'pkg-multimedia-commits' - , 'pkg-multimedia-maintainers' - , 'python-apps-team' } + , 'pkg-kde-extras' + , 'pkg-kde-talk' + , 'pkg-multimedia-commits' + , 'pkg-multimedia-maintainers' + , 'python-apps-team' } for list = 1, #alioth do listfilter = GMAIL.INBOX:contain_field('List-ID', alioth[list] .. '.lists.alioth.debian.org') GMAIL.INBOX:move_messages(GMAIL['Debian' .. folder_sep .. alioth[list]], listfilter) end +salsa = { 'cmus' } + +for proj = 1, #salsa do + listfilter = GMAIL.INBOX:contain_field('X-Gitlab-Project', salsa[proj]) + GMAIL.INBOX:move_messages(GMAIL['Debian' .. folder_sep .. salsa[proj]], listfilter) +end + dbugs = GMAIL.INBOX:match_from('.*@bugs.debian.org') * GMAIL.INBOX:is_seen() GMAIL.INBOX:move_messages(GMAIL['Debian' .. folder_sep .. 'dBugs'], dbugs) -- cgit v1.2.3