On 25 Jun 2018, at 9:54 (-0400), Kevin A. McGrail wrote:

Just to be clear, others concur that with 3 uris or less, it works, 4 or
more it fails. It's inconsistent and exists in trunk as well.

More grief: I can make 3 URIs fail. Just add non-URI text:


[root@centosvm trunk]# diff -uw 3urls*
--- 3urls       2018-06-25 18:12:13.271696840 -0400
+++ 3urlsplus   2018-06-25 18:11:54.798294966 -0400
@@ -7,6 +7,6 @@
 Content-Type: text/plain; charset="UTF-8"
 Content-Transfer-Encoding: 8bit

-http://host1.example.com
-http://host2.example.com
-http://host3.example.com
+ an url: http://host1.example.com
+ an url: http://host2.example.com
+ an url: http://host3.example.com


root@centosvm trunk]# ./spamassassin -D all,uri <3urls 2>&1 |grep 'host[123]\.' Jun 25 18:13:09.501 [67706] dbg: uri: parsed uri found of type parsed, http://host3.example.com Jun 25 18:13:09.501 [67706] dbg: uri: cleaned parsed uri, http://host3.example.com Jun 25 18:13:09.501 [67706] dbg: uri: parsed host host3.example.com, domain example.com Jun 25 18:13:09.501 [67706] dbg: uri: parsed uri found of type parsed, http://host2.example.com Jun 25 18:13:09.501 [67706] dbg: uri: cleaned parsed uri, http://host2.example.com Jun 25 18:13:09.501 [67706] dbg: uri: parsed host host2.example.com, domain example.com Jun 25 18:13:09.501 [67706] dbg: uri: parsed uri found of type parsed, http://host1.example.com Jun 25 18:13:09.501 [67706] dbg: uri: cleaned parsed uri, http://host1.example.com Jun 25 18:13:09.501 [67706] dbg: uri: parsed host host1.example.com, domain example.com Jun 25 18:13:09.501 [67706] dbg: uridnsbl: domain example.com in skip list, host host3.example.com Jun 25 18:13:09.501 [67706] dbg: uridnsbl: domain example.com in skip list, host host1.example.com Jun 25 18:13:09.501 [67706] dbg: uridnsbl: domain example.com in skip list, host host2.example.com Jun 25 18:13:09.634 [67706] dbg: rules: ran uri rule __LOCAL_PP_NONPPURL ======> got hit: "http://host3.example.com"; Jun 25 18:13:09.857 [67706] dbg: uri: parsed uri found of type parsed, http://host3.example.com Jun 25 18:13:09.857 [67706] dbg: uri: cleaned parsed uri, http://host3.example.com Jun 25 18:13:09.857 [67706] dbg: uri: parsed host host3.example.com, domain example.com Jun 25 18:13:09.857 [67706] dbg: uri: parsed uri found of type parsed, http://host2.example.com Jun 25 18:13:09.857 [67706] dbg: uri: cleaned parsed uri, http://host2.example.com Jun 25 18:13:09.857 [67706] dbg: uri: parsed host host2.example.com, domain example.com Jun 25 18:13:09.857 [67706] dbg: uri: parsed uri found of type parsed, http://host1.example.com Jun 25 18:13:09.857 [67706] dbg: uri: cleaned parsed uri, http://host1.example.com Jun 25 18:13:09.857 [67706] dbg: uri: parsed host host1.example.com, domain example.com
http://host1.example.com
http://host2.example.com
http://host3.example.com

[root@centosvm trunk]# ./spamassassin -D all,uri <3urlsplus 2>&1 |grep 'host[123]\.' Jun 25 18:13:16.134 [67710] dbg: uri: parsed uri found of type parsed, http://host3.example.com Jun 25 18:13:16.134 [67710] dbg: uri: cleaned parsed uri, http://host3.example.com Jun 25 18:13:16.134 [67710] dbg: uri: parsed host host3.example.com, domain example.com Jun 25 18:13:16.134 [67710] dbg: uri: parsed uri found of type parsed, http://host2.example.com Jun 25 18:13:16.134 [67710] dbg: uri: cleaned parsed uri, http://host2.example.com Jun 25 18:13:16.134 [67710] dbg: uri: parsed host host2.example.com, domain example.com Jun 25 18:13:16.134 [67710] dbg: uridnsbl: domain example.com in skip list, host host3.example.com Jun 25 18:13:16.134 [67710] dbg: uridnsbl: domain example.com in skip list, host host2.example.com Jun 25 18:13:16.267 [67710] dbg: rules: ran uri rule __LOCAL_PP_NONPPURL ======> got hit: "http://host3.example.com"; Jun 25 18:13:16.524 [67710] dbg: uri: parsed uri found of type parsed, http://host3.example.com Jun 25 18:13:16.524 [67710] dbg: uri: cleaned parsed uri, http://host3.example.com Jun 25 18:13:16.524 [67710] dbg: uri: parsed host host3.example.com, domain example.com Jun 25 18:13:16.525 [67710] dbg: uri: parsed uri found of type parsed, http://host2.example.com Jun 25 18:13:16.525 [67710] dbg: uri: cleaned parsed uri, http://host2.example.com Jun 25 18:13:16.525 [67710] dbg: uri: parsed host host2.example.com, domain example.com Jun 25 18:13:16.525 [67710] dbg: uri: parsed uri found of type parsed, http://host1.example.com Jun 25 18:13:16.525 [67710] dbg: uri: cleaned parsed uri, http://host1.example.com Jun 25 18:13:16.525 [67710] dbg: uri: parsed host host1.example.com, domain example.com
 an url: http://host1.example.com
 an url: http://host2.example.com
 an url: http://host3.example.com


I do not understand why the message is being re-parsed for URIs or why the second pass finds the first URI where the first pass did not. Also, I get different results from different versions of Perl running the same spamassassin script:

[root@centosvm trunk]# /usr/bin/perl5.16.3 -T ./spamassassin -D all,uri <3urlsplus 2>&1 |grep 'host[123]\.' Jun 25 18:22:05.572 [67809] dbg: uri: parsed uri found of type parsed, http://host3.example.com Jun 25 18:22:05.572 [67809] dbg: uri: cleaned parsed uri, http://host3.example.com Jun 25 18:22:05.572 [67809] dbg: uri: parsed host host3.example.com, domain example.com Jun 25 18:22:05.572 [67809] dbg: uri: parsed uri found of type parsed, http://host2.example.com Jun 25 18:22:05.572 [67809] dbg: uri: cleaned parsed uri, http://host2.example.com Jun 25 18:22:05.572 [67809] dbg: uri: parsed host host2.example.com, domain example.com Jun 25 18:22:05.572 [67809] dbg: uridnsbl: domain example.com in skip list, host host3.example.com Jun 25 18:22:05.572 [67809] dbg: uridnsbl: domain example.com in skip list, host host2.example.com Jun 25 18:22:05.703 [67809] dbg: rules: ran uri rule __LOCAL_PP_NONPPURL ======> got hit: "http://host3.example.com"; Jun 25 18:22:05.931 [67809] dbg: uri: parsed uri found of type parsed, http://host3.example.com Jun 25 18:22:05.931 [67809] dbg: uri: cleaned parsed uri, http://host3.example.com Jun 25 18:22:05.931 [67809] dbg: uri: parsed host host3.example.com, domain example.com Jun 25 18:22:05.931 [67809] dbg: uri: parsed uri found of type parsed, http://host2.example.com Jun 25 18:22:05.931 [67809] dbg: uri: cleaned parsed uri, http://host2.example.com Jun 25 18:22:05.931 [67809] dbg: uri: parsed host host2.example.com, domain example.com Jun 25 18:22:05.931 [67809] dbg: uri: parsed uri found of type parsed, http://host1.example.com Jun 25 18:22:05.931 [67809] dbg: uri: cleaned parsed uri, http://host1.example.com Jun 25 18:22:05.931 [67809] dbg: uri: parsed host host1.example.com, domain example.com
 an url: http://host1.example.com
 an url: http://host2.example.com
 an url: http://host3.example.com
[root@centosvm trunk]# /usr/local/bin/perl5.18.4 -T ./spamassassin -D all,uri <3urlsplus 2>&1 |grep 'host[123]\.' Jun 25 18:22:15.708 [67813] dbg: uri: parsed uri found of type parsed, http://host2.example.com Jun 25 18:22:15.708 [67813] dbg: uri: cleaned parsed uri, http://host2.example.com Jun 25 18:22:15.708 [67813] dbg: uri: parsed host host2.example.com, domain example.com Jun 25 18:22:15.708 [67813] dbg: uri: parsed uri found of type parsed, http://host3.example.com Jun 25 18:22:15.708 [67813] dbg: uri: cleaned parsed uri, http://host3.example.com Jun 25 18:22:15.708 [67813] dbg: uri: parsed host host3.example.com, domain example.com Jun 25 18:22:15.708 [67813] dbg: uri: parsed uri found of type parsed, http://host1.example.com Jun 25 18:22:15.708 [67813] dbg: uri: cleaned parsed uri, http://host1.example.com Jun 25 18:22:15.708 [67813] dbg: uri: parsed host host1.example.com, domain example.com Jun 25 18:22:15.708 [67813] dbg: uridnsbl: domain example.com in skip list, host host3.example.com Jun 25 18:22:15.708 [67813] dbg: uridnsbl: domain example.com in skip list, host host2.example.com Jun 25 18:22:15.708 [67813] dbg: uridnsbl: domain example.com in skip list, host host1.example.com Jun 25 18:22:15.852 [67813] dbg: rules: ran uri rule __LOCAL_PP_NONPPURL ======> got hit: "http://host3.example.com"; Jun 25 18:22:16.045 [67813] dbg: uri: parsed uri found of type parsed, http://host3.example.com Jun 25 18:22:16.045 [67813] dbg: uri: cleaned parsed uri, http://host3.example.com Jun 25 18:22:16.045 [67813] dbg: uri: parsed host host3.example.com, domain example.com Jun 25 18:22:16.045 [67813] dbg: uri: parsed uri found of type parsed, http://host2.example.com Jun 25 18:22:16.045 [67813] dbg: uri: cleaned parsed uri, http://host2.example.com Jun 25 18:22:16.045 [67813] dbg: uri: parsed host host2.example.com, domain example.com Jun 25 18:22:16.045 [67813] dbg: uri: parsed uri found of type parsed, http://host1.example.com Jun 25 18:22:16.045 [67813] dbg: uri: cleaned parsed uri, http://host1.example.com Jun 25 18:22:16.045 [67813] dbg: uri: parsed host host1.example.com, domain example.com
 an url: http://host1.example.com
 an url: http://host2.example.com
 an url: http://host3.example.com


I'm very much convinced this is something very strangely broken in Red Hat's bespoke variant of 5.16.3.


--
Bill Cole
[email protected] or [email protected]
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Currently Seeking Steadier Work: https://linkedin.com/in/billcole

Reply via email to