]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] R_PARTS_DIFFER: also handle parts without words
authorVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 3 Feb 2026 10:14:26 +0000 (10:14 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 3 Feb 2026 10:14:26 +0000 (10:14 +0000)
commit56e4bc3764e2deb80c5a4578a66dec48b15a90a2
treeab258f7f783a5143e74e85b5fb23e712271ce192
parente5a8281ab10d81811864379357eadf0cdfcaa373
[Fix] R_PARTS_DIFFER: also handle parts without words

The previous fix only handled truly empty parts. This also handles
the case where a part has content but no extractable words (e.g.,
6 bytes of whitespace in text/plain vs 142 words in text/html).

Now check if exactly one part has normalized_hashes with words,
regardless of whether parts are marked as empty.
src/libmime/message.c