mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 13:25:37 +00:00
First part of Bug #243680 --> Marking mails as "not junk" does not update training.dat / spam filter does not create that file at all.
No one was ever calling shutdown on the plugin so we never forced ourselves to save the training data if it was dirty. sr=bienvenu
This commit is contained in:
parent
09262fdf91
commit
024a5acba0
@ -826,7 +826,12 @@ nsBayesianFilter::nsBayesianFilter()
|
||||
}
|
||||
}
|
||||
|
||||
nsBayesianFilter::~nsBayesianFilter() {}
|
||||
nsBayesianFilter::~nsBayesianFilter()
|
||||
{
|
||||
// call shutdown when we are going away in case we need
|
||||
// to flush the training set to disk
|
||||
Shutdown();
|
||||
}
|
||||
|
||||
// this object is used for one call to classifyMessage or classifyMessages().
|
||||
// So if we're classifying multiple messages, this object will be used for each message.
|
||||
|
Loading…
Reference in New Issue
Block a user