Skip to content

Latest commit

 

History

History
22 lines (22 loc) · 1.12 KB

TODO.org

File metadata and controls

22 lines (22 loc) · 1.12 KB

Change the class structure for `Filter`: use a delegate

The result of this should allow the filter definition’s `self`’s class can be customized (for more targeted conditions and such).

Finalization model for single-filter definition

Allow defining multible conditions, actions in the filter body. Then at the end of the block finalize into filter object & register that.

Bonus points: Filter chain subclasses

This would make it much easier to reason about / test filter negation & stuff like archive_unless_directed.

Check for maximum length of filter conditions

Avoid emitting empty filters if there is a .archive_unless_directed

Maybe a more convenient has/has_not criteria format?

Something like this?

has :to, '[email protected]'
has :from, '[email protected]'

Might also make it easier to optimize filter expressions for length (but how to specify OR? Guess this is for a version 1.0/2.0)

Extract my personal filters from this repo

While it’s neat that I can keep them in here, I should just make a separate repo for them.