SA Bugzilla – Bug 2257
Token access times set backward by learning an old message.
Last modified: 2003-07-29 14:09:09 UTC
The sa-learn command sets the access time of tokens to the received time of the message, even for existing tokens that had been accessed later than the received time. This can cause problems when training using an old message. I'll try to attach a simple patch. The patch works if toc_sync_counters never has a reason to set the access time backward, which seems to be true but I'm new to the code.
Created attachment 1183 [details] Keep token access time from decreasing.
this should definitely be fixed pre-2.60pr3...
Created attachment 1184 [details] my updated version of the suggested patch we typically like diffs in context format, and I wanted to add a comment and such. :)
just to note: we checked when doing a token touch for this issue, but not when calling tok_sync_counters which is called during learn, journal sync, etc. doh. so we really need to get this in. thanks for catching this. :)
Can someone please review this patch? This is pretty much the last thing holding up PR3. Thanks.
I hope I'm not being a pest, but can you look at 2263 before considering another preview release. Its impact will be greater than this bug for those who autolearn either mostly spam or mostly ham.
+1. sorry, thought I'd already done this.
committed. :)