You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by he...@apache.org on 2021/04/30 18:28:50 UTC
svn commit: r1889338 -
/spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm
Author: hege
Date: Fri Apr 30 18:28:50 2021
New Revision: 1889338
URL: http://svn.apache.org/viewvc?rev=1889338&view=rev
Log:
Fix bogus mail parsing
Modified:
spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm
Modified: spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm
URL: http://svn.apache.org/viewvc/spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm?rev=1889338&r1=1889337&r2=1889338&view=diff
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm Fri Apr 30 18:28:50 2021
@@ -2653,6 +2653,9 @@ sub _process_text_uri_list {
next if exists $seen{$rawuri};
$seen{$rawuri} = 1;
+ # Ignore bogus mail captures (@ might have been trimmed from the end above..)
+ next if $rawtype eq 'mail' && index($rawuri, '@') == -1;
+
dbg("uri: found rawuri from text ($rawtype): $rawuri") if $would_log_uri_all;
# Quick ignore if schemeless host not valid