On 12/17/2024 11:20 AM, giova...@paclan.it wrote:
On 12/17/24 12:03 AM, fke...@apache.org wrote:
Author: fkento
Date: Mon Dec 16 23:03:42 2024
New Revision: 1922544
URL: http://svn.apache.org/viewvc?rev=1922544&view=rev
Log:
Add some rules for testing
Added:
spamassassin/trunk/rulesrc/sandbox/fkento/
spamassassin/trunk/rulesrc/sandbox/fkento/20_misc.cf
Added: spamassassin/trunk/rulesrc/sandbox/fkento/20_misc.cf
URL:
http://svn.apache.org/viewvc/spamassassin/trunk/rulesrc/sandbox/fkento/20_misc.cf?rev=1922544&view=auto
==============================================================================
--- spamassassin/trunk/rulesrc/sandbox/fkento/20_misc.cf (added)
+++ spamassassin/trunk/rulesrc/sandbox/fkento/20_misc.cf Mon Dec 16
23:03:42 2024
@@ -0,0 +1,61 @@
+
+uri-detail MXG_EMAIL_FRAG raw =~
/^http.*\#[a-zA-Z0-9](?:[a-zA-Z0-9\+\_\=\.\-]*[a-zA-Z0-9])?@(?:[a-z0-9_](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9]/i
domain !~ /^typeform\.com$/
+score MXG_EMAIL_FRAG 0.1
+describe MXG_EMAIL_FRAG URI with email in fragment
+
You should use "ifplugin Mail::SpamAssassin::Plugin::URIDetail" before
using the plugin.
Other then that, from man page it's "uri_detail", not "uri-detail".
Thanks
Giovanni
Kind reminder for anyone commiting anything to trunk, including rules.
Do not commit before running a make test!!!
Preferably do full distclean/build, atleast it will rebuild and lint
rulesrc. Maybe someone can come up with a simpler method, too lazy now.
make distclean
perl Makefile.PL
make
make test
lint: config: invalid regexp for __MXG_GOOGLE_FOREIGN_REDIR01
'/https?:\/\/(www\.)?google\.(com?\.)?\w\w(?<!ca|uk|za|%\{MXG_FROM_TLD\})\/(url|amp)/i':
Variable length lookbehind not implemented in regex
m/(?i)https?:\/\/(www\.)?google\.(com?\.)?\w\w(?<!ca|uk|za|%\{MXG_FROM_TLD\})\/(url|amp)/
at build/mkrules line 262.
ERROR: LINT FAILED, suppressing output: rules/70_sandbox.cf
lint: config: failed to parse line in rules/72_active.cf (line 6845):
uri-detail MXG_EMAIL_FRAG raw =~
/^http.*#[a-zA-Z0-9](?:[a-zA-Z0-9\+\_\=\.\-]*[a-zA-Z0-9])?@(?:[a-z0-9_](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9]/i
domain !~ /^typeform\.com$/ at build/mkrules line 262.
lint: config: failed to parse line in rules/72_active.cf (line 6846):
uri-detail MXG_BING_REDIR_SUSP raw =~
/^https?:\/\/(www\.)?bing\.com(:443)?\/ck\//i text =~
/\b(cache|documents?|messages?|now|password|preview|refill|refuel|review|update|verify|view)\b/i
at build/mkrules line 262.
lint: config: failed to parse line in rules/72_active.cf (line 6847):
uri-detail __MXG_UNSUB_LINK01 text =~ /unsubscribe|opt[\s-]out/i at
build/mkrules line 262.