Update u_and_e.md

Added explanation on how to check mail learned in Redis
This commit is contained in:
fabreg 2017-03-23 19:32:00 +01:00 committed by GitHub
parent 6fd13c96d0
commit 2c30b1e6a8
1 changed files with 14 additions and 0 deletions

View File

@ -282,6 +282,20 @@ Consider attaching a local folder as new volume to `rspamd-mailcow` in `docker-c
for file in /data/old_mail/.Junk/cur/*; do rspamc learn_spam < zcat $file; done
```
Other than that if you want to be sure emails are learned as HAM/SPAM you can check directly on Redis using the following commands:
```
docker-compose exec redis-mailcow redis-cli
```
And when the Redis shell's prompt appears, type
```
HGETALL BAYES_HAM
```
to check the emails tagged as HAM. Replace this command with HGETALL BAYES_SPAM for doing the same with SPAM.
### CLI tools
```