# Ensure effective TLD data is loaded for URL/selector tests
options {
  maps {
    secretbox_key = "HCaNSQFUeZnDZVQ58BrVMsKOsGZHUpUtmW9khyJeYB4=";
  }
}

# Configure multimap for regexp rules testing
multimap {
  ADVANCE_FEE_SA_RULES {
    type = "regexp_rules";
    map = "{= env.TESTDIR =}/configs/maps/advance_fee_rules.map.zst.enc";
    scope = "advance_fee_scope";
    description = "Advance fee fraud detection rules";
  }
  SA_SELECTOR_RULES {
    type = "regexp_rules";
    map = "{= env.TESTDIR =}/configs/maps/sa_selector_rules.map";
    description = "SA-like selector/header/uri/full tests";
  }
}

# Override symbol scores for testing
symbols {
  ADVANCE_FEE_2 {
    score = 4.0;
    description = "Advance fee fraud pattern (medium confidence)";
    group = "scam";
  }
  ADVANCE_FEE_3 {
    score = 5.0;
    description = "Advance fee fraud pattern (high confidence)";
    group = "scam";
  }
}

# Set required score for testing
actions {
  reject = 10;
  add_header = 6;
  greylist = 4;
}

# Enable necessary modules
dmarc { }
spf { }
dkim { }

# Module path for multimap
modules {
    path = "{= env.TESTDIR =}/../../src/plugins/lua/"
}

# Disable some modules that might interfere with testing
rbl {
  enabled = false;
}

fuzzy_check {
  enabled = false;
}

.include(duplicate=merge,priority=0) "{= env.TESTDIR =}/configs/plugins.conf"
