Currently policies are firm-coded (the rules are fixed, but they reference parameters tweakable via the config file). Changing the code is the ultimate in configurability, of course, and DSLs are terrible, but maybe IOS-ACL style rules wouldn't be too bad?
ephemera policy create foo
ephemera policy append foo replies 10+ keep
ephemera policy append foo age 7d+ favs 0 replies 0 rts 0 drop
ephemera policy append foo age 30d+ favs 10- replies 0 drop
That would translate into:
- regardless of anything else, if a tweet has 10 or more replies, keep it
- if a tweet is 7d or older and has no interaction, delete it
- if a tweet is 30d or older and has no replies and fewer than 10 stars, delete it
- otherwise keep
Currently policies are firm-coded (the rules are fixed, but they reference parameters tweakable via the config file). Changing the code is the ultimate in configurability, of course, and DSLs are terrible, but maybe IOS-ACL style rules wouldn't be too bad?
ephemera policy create foo
ephemera policy append foo replies 10+ keep
ephemera policy append foo age 7d+ favs 0 replies 0 rts 0 drop
ephemera policy append foo age 30d+ favs 10- replies 0 drop
That would translate into: