You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by fk...@apache.org on 2026/07/13 04:22:11 UTC
svn commit: r1936095 - spamassassin/trunk/lib/Mail/SpamAssassin
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);