Commit Graph

10 Commits

Author SHA1 Message Date
Stacy Brock
f4f81e3270 Update filters 2021-09-01 10:04:10 -07:00
Stacy Brock
6214c282b4 Update filters 2021-08-30 13:18:16 -07:00
Stacy Brock
b4a7312a4b Clarify comment 2021-08-30 13:18:07 -07:00
Stacy Brock
7326b3667d Update filters 2021-08-14 09:58:30 -07:00
Stacy Brock
27986cec22 Fix a bug with an uninitialized variable 2021-04-14 16:25:01 -07:00
Stacy Brock
6af6eed48d Improve filter-rules.py
Changelist:
- Add init_filters() func as an entry point when filters are reloaded
  from a file. This is a good place to put any code that should be
  loaded once instead of on a per-message basis.
- Added helper functions for moving messages and checking if a message
  has any matches in a list of strings.
- Created local object caches for normalized keyword lists and mailbox
  folder IDs. This puts the data closer to where it is needed, and
  removes the need for passing 'self' around when filtering.
- Added filter rule to catch unactionable email.
2021-04-14 14:43:34 -07:00
Stacy Brock
f1a87e5496 Add 4hr cache for filtered messages; add log helper func 2021-04-14 14:37:26 -07:00
Stacy Brock
2972d94e95 Update python packages 2021-04-08 09:19:04 -07:00
Stacy Brock
6db1ca8449 Fix a bug with blocked domains filter 2021-04-08 09:18:19 -07:00
Stacy Brock
11f692cc42 Initial commit 2021-03-30 09:46:40 -07:00