[ArchiveSentMailsFilter]

[SpamFilter]
spam_tag = spam

[MailMover]
folders = INBOX Junk
# according to docs, this should be true if using mbsync
rename = True
max_age = 15
# rules
INBOX = 'tag:spam':Junk 'NOT tag:inbox':Archive
Junk = 'NOT tag:spam AND tag:inbox':INBOX 'NOT tag:spam':Archive

[InboxFilter]

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

[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

[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

[Filter.22]
message = forkable crap
query = from:team@forkable.com
tags = -inbox;+groq;+forkable

[Filter.23]
message = xfinity crap
query = from:xfinity.com
tags = -inbox;+xfinity

[Filter.24]
message = interactive brokers
query = from:interactivebrokers.com
tags = -inbox;+ibkr

[Filter.25]
message = usps informed delivery crap
query = from:usps.gov
tags = -inbox;+usps

[Filter.26]
message = perfect workout marketing mails
query = from:admin@theperfectworkout.com
tags = -inbox;+exercise

[Filter.27]
message = wines
query = from:offer@lastbottlewines.com OR from:kogodwine.com
tags = -inbox;+food;+wine

[Filter.28]
message = docusign notifications
query = from:docusign.net
tags = -inbox;+docusign

[Filter.29]
message = sourcehut stuff
query = to:sr.ht-*@lists.sr.ht
tags = +sourcehut

[Filter.30]
message = urbit stuff
query = subject:[urbit-dev] OR subject:[urbit/*]
tags = +urbit

# In order to unsubscribe I need to know by user/pass, which I do not...
[Filter.31]
message = delete all hilton honors stuff
query = from:honors@h1.hilton.com
tags = -inbox;+deleted

[Filter.32]
message = four sigmatic crap
query = from:foursigmatic.com
tags = -inbox

[Filter.33]
message = wakatime crap
query = from:wakatime.com
tags = -inbox

[Filter.34]
message = exercise crap
query = from:chriskresser.com OR from:miketnelson.com
tags = -inbox

[Filter.35]
message = annoying gitlab forum notifications
query = from:forum@mg.gitlab.com
tags = -inbox

[Filter.36]
message = art of shaving shit
query = from:*theartofshaving.com
tags = -inbox

[Filter.37]
message = i hate triplebyte
query = triplebyte
tags = -inbox

[Filter.38]
message = theres no way to unsub from meritage
query = from:meritagewinemarket.com
tags = -inbox