[ArchiveSentMailsFilter]

[SpamFilter]
spam_tag = spam

# This filter looks for the List-Id header, and if it finds it, adds a
# tag lists and a tag named lists/<list-id>.
[ListMailsFilter]

[InboxFilter]

[Filter.0]
message = mobile todos
query = 'from:ben@bsima.me AND to:ben@bsima.me AND subject:TODO'
tags = +todo;-inbox;+unread

[Filter.1]
message = logwatch
query = subject:Logwatch
tags = +logwatch;-new;-inbox

[Filter.2]
message = newsletters
query =
  from:the-morning-paper@onelanday.co.uk OR
  subject:'The Reading List Email*' OR
  from:info@haskellweekly.news OR
  from:kale@hackernewsletter.com OR
  from:newsletter@farnamstreetblog.com
tags = -unread;+newsletters;-inbox

[Filter.3]
message = job emails
query =
  from:linkedin.com OR
  from:alist.co OR
  from:angel.co OR
  from:stackoverflow.com OR
  from:stackoverflow.email OR
  from:cdmtechnology.com OR
  subject:job
tags = +jobs;-inbox

[Filter.4]
message = github
query = from:github.com
tags = +github;-inbox

[MailMover]
folders = Important INBOX
INBOX = 'tag:flagged AND NOT tag:spam':.Important
Important = 'NOT tag:flagged':.INBOX 'tag:spam':.INBOX

[Filter.5]
message = remove lists from inbox
query = tag:lists AND tag:inbox
tags = -inbox

[Filter.6]
message = remove rspamd from inbox
query = from:rspamd
tags = -inbox

[Filter.7]
message = banking activity confirmations
query =
  (from:discover@service.discover.com AND subject:'Your Scheduled Payment') OR
  (from:citicards@info6.citi.com AND subject:Confirmation)
tags = -inbox;+banking

[Filter.8]
message = receipts
query = subject:receipt
tags = +receipts;-inbox

[Filter.9]
message = stupid social networks
query = from:messages-noreply@linkedin.com
tags = -inbox;-unread;+deleted;+spam

[Filter.10]
message = meetups
query = from:*@meetup.com
tags = -inbox;+meetups

[Filter.11]
message = emacs lists
query =
  to:emacs-devel@gnu.org OR to:info-gnu-emacs@gnu.org OR to:help-gnu-emacs@gnu.org OR
  cc:emacs-devel@gnu.org OR cc:info-gnu-emacs@gnu.org OR cc:help-gnu-emacs@gnu.org
tags = -inbox;+emacs

[Filter.12]
message = philosophy lists
query = to:publish-liv@humanist.kdl.kcl.ac.uk
tags = -inbox;+philosophy

[Filter.13]
message = science lists
query = from:newsletter@fightaging.org
tags = -inbox;+science

[Filter.14]
message = work stuff
query =
  from:git@undergroundelephant.com OR subject:*HeroOS* OR
  to:bsima@ue.co OR to:bsima@undergroundelephant.com OR
  to:ben.sima@heroprojects.io
tags = +work

[Filter.17]
message = ai lists
query = to:scikit-learn@python.org OR to:tensorflow.org
tags = -inbox;+ai

[Filter.18]
message = bitcoin lists
query = to:bitcoin-dev@lists.linuxfoundation.org OR to:bitcoin-discuss@lists.linuxfoundation.org
tags = -inbox;+bitcoin

[Filter.19]
message = lobsters
query = to:lobsters-FTNhzWhnaM@lobste.rs
tags = -inbox;+lobsters

[Filter.20]
message = deleuze and guattari
query = to:deleuze-guattari@lists.driftline.org
tags = -inbox;+philosophy

[Filter.21]
message = stupid noreply bots
query = from:noreply OR from:no-reply
tags = -inbox;+noreply