Bug 398491 - kmail,spamassassin,spam asssistant, bad condition to put spam in spambox
Summary: kmail,spamassassin,spam asssistant, bad condition to put spam in spambox
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-11 10:54 UTC by Philippe ROUBACH
Modified: 2019-03-08 06:14 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.11


Attachments
spam filter (203.07 KB, image/png)
2019-03-07 06:48 UTC, Philippe ROUBACH
Details
spam filter english version (176.87 KB, image/png)
2019-03-07 13:12 UTC, Philippe ROUBACH
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe ROUBACH 2018-09-11 10:54:18 UTC
opensuse leap 15.0
kde app 17.12.3
kmail 5.7.3

in kmail i setup spamassassin filters with the spam assistant.

"x-spam-flag:YES" filter does not work. all spam detected mails stay in inbox.

condition of "x-spam-flag:YES" is

"contient(contains)" "(yes) | (YES)"

i changed this to

"is equal to" "(yes) | (YES)"

then
All detected spam mails are put in spambox
Comment 1 Philippe ROUBACH 2019-02-12 17:18:02 UTC
i made an error.

the good condition is :

"matches regula" "(yes) | (YES)"
Comment 2 Philippe ROUBACH 2019-02-12 17:19:24 UTC
sorry

"matches regular expr." "(yes) | (YES)"
Comment 3 Philippe ROUBACH 2019-03-06 12:38:37 UTC
kontact 5.10.2
plasma 5.15.2
kde framework 5.55.0
qt 5.12.1

pb still there
Comment 4 Laurent Montel 2019-03-07 06:10:30 UTC
[Spamtool #1]
Ident=spamassassin
Version=1
Priority=40
VisibleName=SpamAssassin 2.x (Perl)
Executable=spamassassin -V | grep "SpamAssassin version 2"
URL=http://spamassassin.org
PipeFilterName=SpamAssassin Check
PipeCmdDetect=spamassassin -L
PipeCmdNoSpam=spamassassin -d
ExecCmdSpam=sa-learn -L --spam --no-sync --single
ExecCmdHam=sa-learn -L --ham --no-sync --single
DetectionHeader=X-Spam-Flag
DetectionPattern=(yes)|(YES)
DetectionPattern2=
DetectionOnly=0
UseRegExp=1
SupportsBayes=1
SupportsUnsure=0
ScoreName=Spamassassin
ScoreHeader=X-Spam-Status
ScoreType=Adjusted
ScoreValueRegexp=(?:hits|score)=([\\d\\.-]+)[^\\d\\.]
ScoreThresholdRegexp=required=([\\d\\.-]+)[^\\d\\.]


it seems it's ok no ?
Comment 5 Philippe ROUBACH 2019-03-07 06:48:29 UTC
Created attachment 118617 [details]
spam filter

opensuse Argon 15.0
kontact 5.10.2
plasma 5.15.2
kde framework 5.55.0
qt 5.12.1

fresh install

you can see "contient" (contains) instead of "correspond à l'expression rationnelle" (matches regular expr.)
Comment 6 Laurent Montel 2019-03-07 12:59:21 UTC
I reverify here and it generate correct filter...
Could you switch to english version to be sure that it's not a translation problem ?

Thanks
Comment 7 Philippe ROUBACH 2019-03-07 13:12:47 UTC
Created attachment 118624 [details]
spam filter english version

it is same in english. you can see "contains"
Comment 8 Philippe ROUBACH 2019-03-07 13:16:21 UTC
i deleted all filters then recreated with assistant in english.

problem still there.
Comment 9 Laurent Montel 2019-03-07 13:31:13 UTC
no idea for the moment.
Comment 10 Philippe ROUBACH 2019-03-07 22:19:49 UTC
i found !

with assistant
if  you select "spam daemon" then you get "contains"
if you select "spam perl" then you get "matches regular exp"
Comment 11 Laurent Montel 2019-03-08 06:10:22 UTC
oh !
Comment 12 Laurent Montel 2019-03-08 06:14:25 UTC
Git commit f8343d63af9d546b61b264ca008480a66b406fc1 by Laurent Montel.
Committed on 08/03/2019 at 06:13.
Pushed by mlaurent into branch 'master'.

Fix Bug 398491 - kmail,spamassassin,spam asssistant, bad condition to put spam in spambox

FIXED-IN: 5.11

Thanks for  Philippe ROUBACH for investigating this bug.
I didn't know that we have support for deamon too.

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

https://commits.kde.org/kdepim-addons/f8343d63af9d546b61b264ca008480a66b406fc1