Bug 7308 - Include "forget:" keyword to sa-learn -f option
Summary: Include "forget:" keyword to sa-learn -f option
Status: NEW
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: Learner (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 enhancement
Target Milestone: 4.0.0
Assignee: SpamAssassin Developer Mailing List
Depends on:
Reported: 2016-04-08 15:39 UTC by apachebugs
Modified: 2019-06-15 20:55 UTC (History)
3 users (show)

Attachment Type Modified Status Actions Submitter/CLA Status

Note You need to log in before you can comment on or make changes to this bug.
Description apachebugs 2016-04-08 15:39:15 UTC
Currently, sa-learn's `-f` can be used to replace `sa-learn --ham /some/dir` and `sa-learn --spam /other/dir` by a single `sa-learn -f` call. However, it is not possible to replace a `sa-learn --forget /third/dir` the same way.

I would propose to add a keyword `forget` to the `sa-learn -f` file parser, so that a configuration like this works:

$ sa-learn -f config 
$ cat config
Comment 1 Kevin A. McGrail 2018-08-25 23:11:16 UTC
Great idea.  Any chance you can take a pass at a patch for this idea?
Comment 2 apachebugs 2018-08-30 20:58:45 UTC
> Great idea.  Any chance you can take a pass at a patch for this idea?
Thanks for picking up this bug, but, sorry, no -- I can somewhat understand
Perl if people use simple phrases and not-so-complicated words ;) but I
don't speak it well enough to write code that real people would use...