martinschaible / rspamd-rules

Curated Multimaps and Rules for Rspamd
Apache License 2.0
13 stars 1 forks source link

Missing / in _ad_country_cn.map Line 44 and broken regex #29

Closed spec1re closed 1 year ago

spec1re commented 1 year ago
    Line  39: /we are.{1,10}chinese.{1,10}leading/i
    Line  40: /we are.{1,10}chinese.{1,15}(leading|manufacturer)/i
    Line  42: /we are.{1,10}(china|guangzhou|shenzhen|zhejiang).?based.{1,10}(company|manufacturer?|supplier).{1,10}(of|offering)/i
    Line  44:  we are.{1,10}factory located in.{1,15}(china|guangzhou|shenzhen|zhejiang)/i
    Line  45: /we are.{1,10}(professional|tooling).{1,15}manufacturer?.{1,10}(china|guangzhou|shenzhen|zhejiang)/i
    Line  46: /we are.{1,20}manufacturer.{1,10}(directly|from|in).{1,10}(china|guangzhou|shenzhen|zhejiang)/i
    Line  75: /we are.{1,15}fast.{1,10}growing distributor/i

Will result in

Sort by: BAYES_HAM (-8) [100.00%] are (1.10) <---------------------- MIME_GOOD (-0.1)

Same here broken regex will match everting with "WE are" no mather what.

martinschaible commented 1 year ago

Thanks, it is fixed