Bug 224444 - classify as spam/ham with spamassassin should use --sync
Summary: classify as spam/ham with spamassassin should use --sync
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-27 10:45 UTC by Philipp
Modified: 2015-04-13 16:20 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp 2010-01-27 10:45:24 UTC
Version:            (using KDE 4.3.4)
OS:                Linux
Installed from:    Ubuntu Packages

shouldn't the spamassassin command in the automatically created filter use
"sa-learn -L --spam --sync" instead of the --no-sync switch? i think a sync is needed in order to make SA take the training into account when scanning new messages. so disabling this with --no-sync would render all the training you do in kmail useless until you run sa-learn --sync from command line. people who use kmail and set up the filters with the wizard usually don't know about this, so all their training will be useless. can be quite frustrating.

advanced users who know spamassassin will change it the filters to their likings anyways.
Comment 1 Laurent Montel 2015-04-12 10:25:59 UTC
Thank you for taking the time to file a bug report.

KMail2 was released in 2011, and the entire code base went through significant changes. We are currently in the process of porting to Qt5 and KF5. It is unlikely that these bugs are still valid in KMail2.

We welcome you to try out KMail 2 with the KDE 4.14 release and give your feedback.
Comment 2 Philipp 2015-04-13 15:35:21 UTC
laurent, actually nothing changed. the anti-spam wizard still creates the same filters with the --no-sync option (tested with 4.14.1)

if you don't agree with my opinion you can close the bug, but it is still a valid point and not outdated.
Comment 3 Laurent Montel 2015-04-13 16:20:07 UTC
"
--no-sync
    Skip the slow syncronization step which normally takes place after changing database entries. If you plan to learn from many folders in a batch, or to learn many individual messages one-by-one, it is faster to use this switch and run sa-learn --sync once all the folders have been scanned. 

    Clarification: The state of --no-sync overrides the bayes_learn_to_journal configuration option. If not specified, sa-learn will learn to the database directly. If specified, sa-learn will learn to the journal file.

    Note: --sync and --no-sync can be specified on the same commandline, which is slightly confusing. In this case, the --no-sync option is ignored since there is no learn operation.
"
it's slow as write in doc.
But indeed it will good to sync when we finish to check folder.
Now how we can do...

Could you open a new bug report on kmail2 please ?