Bug 405530

Summary: no "ham" status icon
Product: [Applications] kmail2 Reporter: Philippe ROUBACH <philippe.roubach>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal CC: montel
Priority: NOR    
Version: 5.10.3   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: ham mail handling
true ham mail handling
a mail which is not filtered by the filter i added to manage ham mails

Description Philippe ROUBACH 2019-03-16 16:01:14 UTC
i use bogofilter to handle spam
i add a filter to handle ham mail
this filter flags ham mail as "ham"

in the inbox in mail column a ham mail does not get any status icon "ham" in the contrary of spam mail which gets a status icon "spam" 


SOFTWARE/OS VERSIONS
Windows: 
MacOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.15.3
KDE Frameworks Version: 5.55.0
Qt Version: 5.12.1

ADDITIONAL INFORMATION
kde app 18.12.3
Comment 1 Philippe ROUBACH 2019-03-16 18:03:59 UTC
i made an error . it is a filter problem
Comment 2 Philippe ROUBACH 2019-03-17 09:26:45 UTC
i reopen this bug report.

there is an actual problem.

i encounter this problem also with spamassassin.

 i continue to report about bogofilter.

if i use "X-bogosity" "matches regular exp" "(No) | (Ham) | (Unsure)"
then
ham mails are not filtered thus are not flagged "ham" thus there is no status icon "ham"

if i don't use any condition to filter mails
then
ham mails are filtered thus are flagged "ham" thus there is a status icon "ham"

in header of ham mail we get this:

X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4

or

X-Bogosity: Unsure, tests=bogofilter, spamicity=0.500135, version=1.2.4
Comment 3 Philippe ROUBACH 2019-03-17 09:33:31 UTC
Created attachment 118854 [details]
ham mail handling

"gestion des indésirables" = "spam handling"
"gestion des normaux" = "ham handling"
"classer comme indésirable" = "classify as spam"
"classer comme normal" = "classify as ham"
Comment 4 Philippe ROUBACH 2019-03-17 09:37:30 UTC
Created attachment 118855 [details]
true ham mail handling

previous capture is an error. it is about spam mail handling.
Comment 5 Laurent Montel 2019-03-21 07:08:07 UTC
I need an mail example as I don't understand your bug report.
You have mail without Ham or Unsure info in header ?
Comment 6 Philippe ROUBACH 2019-03-26 08:50:12 UTC
Created attachment 119044 [details]
a mail which is not filtered by the filter i added to manage ham mails

i have mail with "Ham" or "Unsure". there is no problem in the header.

the problem is :

if condition is ""X-bogosity" "matches regular exp" "(No) | (Ham) | (Unsure)""
and the mail satisfies the condition
then
filter does nothing instead of doing its work.