aboutsummaryrefslogtreecommitdiff
path: root/lib/chotto.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chotto.rb')
-rw-r--r--lib/chotto.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/chotto.rb b/lib/chotto.rb
index 61f149b..434002c 100644
--- a/lib/chotto.rb
+++ b/lib/chotto.rb
@@ -12,6 +12,7 @@ require_relative 'chotto/ruleset'
require_relative 'chotto/token'
require_relative 'chotto/token_group'
require_relative 'chotto/message_thread'
+require_relative '../filters/mailing_lists_filter'
module Chotto
class << self
@@ -43,14 +44,14 @@ module Chotto
def close_db
db.close
end
- end
-end
-def eval_rules(options = {})
- Chotto.configure do
- config.only_new = options.fetch(:only_new, false)
+ def include_rule(rule)
+ rule.call
+ end
end
+end
+def eval_rules(_options = {})
Chotto.rule_sets.each(&:run)
Chotto.close_db
end