Bug 389820 - spamassassin
Summary: spamassassin
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: config dialog (show other bugs)
Version: 5.7.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 389908 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-02-03 09:36 UTC by Philippe ROUBACH
Modified: 2018-02-22 08:40 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 17.12.3


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe ROUBACH 2018-02-03 09:36:03 UTC
opensuse 42.3
kmail 5.7.1
spamassassin 3.4.1

if you use spam assistant then a filter is created to manage detected spam messages but with a false condition "X-Spam-Flag" = yes" instead of "X-Spam-Flag" = YES"

the good value is "YES" not "yes"
Comment 1 Philippe ROUBACH 2018-02-03 09:37:24 UTC
i forgot this :

i choose spamassassin daemon
Comment 2 Laurent Montel 2018-02-03 15:54:05 UTC
What is the problem ?
it creates a filter with regular expression with "(yes)|(YES)"
so I don't understand the problem.
Comment 3 Philippe ROUBACH 2018-02-03 15:57:32 UTC
in comment #1 i said i choose "spamassassin daemon"

in this case it creates a filter with "yes" not "yes | YES"
Comment 4 Laurent Montel 2018-02-03 18:59:51 UTC
it's a regexp => search YES or yes
so what is the problem ?
it doesn't catch it ?
Comment 5 Philippe ROUBACH 2018-02-03 22:13:16 UTC
well i mus explain more.

With the assistant
there is a step to choose spamassassin (perl) or spamssassin daemon
then
filters are created

in case of spamassassin perl
then
 a filter "X-Spam-flag = yes | YES" is created
in case of spamassassin daemon
a filter "X-Spam-Flag = yes" is created

if you look message source you see

...
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on linux-58nc
X-Spam-Flag: YES
X-Spam-Level: ******
...

consequence: using spamc/spamd every message detected as spam is not treated as a spam
Comment 6 Laurent Montel 2018-02-22 05:49:01 UTC
Ok I understand it.
Thanks for explanation
Comment 7 Laurent Montel 2018-02-22 05:49:26 UTC
*** Bug 389908 has been marked as a duplicate of this bug. ***
Comment 8 Laurent Montel 2018-02-22 05:51:00 UTC
Fixed in kdepim-addons 17.12.3
Comment 9 Laurent Montel 2018-02-22 08:40:02 UTC
Git commit 70f99474e64b875bbf4f13920698f9c5a4d7c507 by Laurent Montel.
Committed on 22/02/2018 at 05:49.
Pushed by mlaurent into branch 'Applications/17.12'.

Fix Bug 389820 - spamassassin

FIXED-IN: 17.12.3

M  +1    -1    kmail/plugins/common/kmail.antispamrc

https://commits.kde.org/kdepim-addons/70f99474e64b875bbf4f13920698f9c5a4d7c507