Sha256: 11e57bcdd0986dcf91115773ba11afb49d8a90a6c0b5c55169958e5fc4cea645
Contents?: true
Size: 436 Bytes
Versions: 5
Compression:
Stored size: 436 Bytes
Contents
require 'despamilator/filter' module DespamilatorFilter class GtubsTestFilter < Despamilator::Filter def name 'GTubs Test Filter' end def description 'Detects the special test string (Despamilator.gtubs_test_string) and assigns a big score.' end def parse subject subject.register_match!({:score => 100, :filter => self}) if subject.text == Despamilator.gtubs_test_string end end end
Version data entries
5 entries across 5 versions & 1 rubygems