[Rspamd-Users] Questions about REDIS and Bayes Learning

Dan Swartzendruber dswartz at druber.com
Mon Nov 19 15:18:47 UTC 2018


On 2018-11-19 02:48, Tim Harman via Users wrote:
> On 19/11/2018 7:21 pm, Alexander Moisseev via Users wrote:
> 
>> On 19.11.18 3:02, Tim Harman via Users wrote: On 16/11/2018 9:43 pm, 
>> Manuel Garbin wrote:
>> 
>> Hi Tim,
>> autolearn will autofeed the bayes DB, that mean that you have 200+ 
>> learned.
>> For your question :
>> 
>> 1) I've used same command to clean a redis cache, it works
>> 2) disable autolearn if you want use manual learn
>> 3) use header + body and remove the X-spam status header
>> With regards to the first part:
>> 
>> 127.0.0.1:6379> HGETALL RS
>> 1) "learns_spam"
>> 2) "100"
>> 3) "learns_ham"
>> 4) "52"
>> 5) "version"
>> 6) "2"

I just tried 'HGETALL RS' and get this:

127.0.0.1:6379> HGETALL RS
(empty list or set)

If I do 'keys *', it is printing what looks like valid stuff, like this:

344) 
"grey.ZCvTbdp+f4HjPoRgRFwQU5jO2d0UpdsE2glXDFRiLo8sgKQx+nCg6sk+RrOMjjHy/H+0p/k05z1C0u35KRI7DQ=="
345) 
"grey.3+N4gJbweuM8Xy3f5B+G22Yq/esVB/LUMGovu1oOmVtC+gP/QHY/T4j94i15miZOCOuK20kAdqbZ5bn/37iYqw=="
346) 
"grey.3FhSYW5Xo5skI5vOcU18HdXroxZY4206UUTNBDs/dp7YjgzKcb3uree3nGqSXJ6gfklVdkhxSntV1H+ksDmn4w=="
347) 
"grey.307iZAzbE08mzKO5fPqDAzjlNHYt+tkXFxBxi7EAREwj4/O295THyrGD8A8AEZKmMo4aQOivgL8jLQOCbG+LWQ=="

I was running a reasonably up to date rspamd package, and I earlier this 
morning updated to 1.8.2, and still see the above '(empty list or set) 
message.

Any ideas?  Thanks!


More information about the Users mailing list