Bug 491239 - Spam Filtering Does Not Work Correctly
Summary: Spam Filtering Does Not Work Correctly
Status: REPORTED
Alias: None
Product: kmail2
Classification: Applications
Component: commands and actions (show other bugs)
Version: 5.24.3
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-03 23:46 UTC by David C. Bryant
Modified: 2024-10-14 16:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 24.08.1
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David C. Bryant 2024-08-03 23:46:07 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
Spam filtering is broken. I have two filter rules:
1. If size of message < 1,024,000, pipe message through spamassassin -L
2. If X-SPAM-STATUS contains Yes and X-SPAM-FLAG contains YES, move message to spam folder, mark as read and mark as spam

If I turn both these rules on (checkbox marked in Configure Filters dialog), all my incoming mail ends up in the spam folder, and none of tthe messages contain the X-SPAM-XXX headers. If I turn the second rule off, all my mail remains in the Inbox, and the X-SPAM-XXX headers are set correctly. If I  then reconfigure the rules by turning rule #1 off and #2 on, and use the "Apply Filter --> Apply All Filters" action to all the new messages, the program works as it ought to -- the messages marked Yes and YES are moved to the spam folder, etc..

STEPS TO REPRODUCE
1.  Install spamassassin and the two filter rules.
2. Receive some mail from the POP server.
3. Observe what happens

OBSERVED RESULT
I cannot effectively use spam filtering by turning bothrules on simultaneously.

EXPECTED RESULT
I should be able to turn both rules on and get spam-filtering done automatically.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: Kernel is 6.6.38--gentoo-x86_64
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.116.0
Qt Version: 5.15.14

ADDITIONAL INFORMATION
I have played around with this quite a bit. Sometimes, if I change rule #2 a little bit (by making it only check for X-SPAM-STATUS contains Yes, for example), it will work OK for a little while. But after a day or so, it will revert to its previous, buggy behavior.
Comment 1 David C. Bryant 2024-10-14 16:15:46 UTC
This problem has been corrected in kmail 24.08.1 (qt 6.7.2). Filters are now working corrctly.