# -*- ruby -*-

manager_fixture_dir = File.join(File.dirname(__FILE__), "..", "manager")
load(File.expand_path(File.join(manager_fixture_dir, "default.conf")))

define_applicable_condition("stop-recipient") do |condition|
  condition.define_envelope_recipient_stopper do |context, recipient|
    recipient == "stop@example.com"
  end
end

define_milter("milter@10026") do |milter|
  milter.applicable_conditions = ["stop-recipient"]
end
