svn commit: r1936095 - spamassassin/trunk/lib/Mail/SpamAssassin

[email protected] Mon, 13 Jul 2026 04:22:11 -0000
Newsgroups gmane.mail.spam.spamassassin.cvs
Message-ID <178391653126.3517118.14232453794424067852@svn03-he-fi>
Author: fkento
Date: Mon Jul 13 04:22:11 2026
New Revision: 1936095

Log:
Skip calendar parts by effective_type

Match the text/calendar rawbody skip on effective_type()
so alias MIME types (application/ics, text/x-vcalendar)
and .ics-named parts are skipped too, consistent with
the non-text skip on the line above.

Modified:
   spamassassin/trunk/lib/Mail/SpamAssassin/Message.pm

Modified: spamassassin/trunk/lib/Mail/SpamAssassin/Message.pm
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Message.pm	Mon Jul 13 04:20:06 2026	(r1936094)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Message.pm	Mon Jul 13 04:22:11 2026	(r1936095)
@@ -1529,7 +1529,7 @@ sub get_decoded_body_text_array {
     next unless $parts[$pt]->effective_type() =~ /^(?:text|message|image\/svg\+xml)\b/;
     # bug 4843: skip text/calendar parts since they're usually an attachment
     # and not displayed
-    next if ($parts[$pt]->{'type'} eq 'text/calendar');
+    next if ($parts[$pt]->effective_type() eq 'text/calendar');
 
     my $rawbody = $parts[$pt]->decode();
     my $rawlen = length($rawbody);