Bug 361503

Summary: Spam filter (spamassasin) does not work
Product: [Applications] kmail2 Reporter: Stefan <bugtracker>
Component: miscAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: montel
Priority: NOR    
Version: 5.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In: 5.2.0
Sentry Crash Report:

Description Stefan 2016-04-07 17:17:39 UTC
Since several months spamassasin did not work at my computer.
Versions:
SpamAssassin version 3.4.1
  running on Perl version 5.18.2
kmail2 5.1.3

No spam was moved from "Posteingang" to "Trash"
Yesterday I found the bug!
The spam filter were not installed properly.

First filter "Spamassasin Check" worked well.
The second filter, which moves spam to trash and marks it as "read" did not.
The filter rule was "X-Spam-Flag" matches regular expression "(yes)|(YES)"
But spamassasin does not create a line "X-Spam-Flag". In teh current version it creates a line "X-Spam-Level".
So I added a second rule to that filter:
"X-Spam-Level" contains "**"

Works! 

Reproducible: Always
Comment 1 Laurent Montel 2016-04-08 05:29:43 UTC
Oh ! I will investigate it
Comment 2 Laurent Montel 2016-04-08 05:38:06 UTC
We can't compare at 'X-Spam-Level' as it puts "*" number as level
Better to use "X-Spam-Status: Yes" as header
Comment 3 Laurent Montel 2016-04-08 05:42:30 UTC
Git commit 6588d8ed393f0038773537e0ce5fd0f81e41b781 by Montel Laurent.
Committed on 08/04/2016 at 05:41.
Pushed by mlaurent into branch 'Applications/16.04'.

Fix Bug 361503 - Spam filter (spamassasin) does not work

FIXED-IN: 5.2.0

M  +1    -1    kmail/plugins/common/antispamwizard.cpp
M  +1    -1    kmail/plugins/common/antispamwizard.h

http://commits.kde.org/kdepim-addons/6588d8ed393f0038773537e0ce5fd0f81e41b781