Notes on filtering

master
Bob Mottram 2019-07-14 21:58:50 +01:00
parent e0f3ac4e8c
commit 887552f5c5
2 changed files with 20 additions and 2 deletions

View File

@ -393,3 +393,21 @@ Or to unblock:
``` bash
python3 epicyon.py --nickname yournick --domain yourdomain --unblock somenick@somedomain
```
## Filtering on words or phrases
Blocking based upon the content of a message containing certain words or phrases is relatively crude and not always effective, but can help to reduce unwanted communications.
To add a word or phrase to be filtered out:
``` bash
python3 epicyon.py --nickname yournick --domain yourdomain --filter "this is a filtered phrase"
```
It can also be removed with:
``` bash
python3 epicyon.py --nickname yournick --domain yourdomain --unfilter "this is a filtered phrase"
```
Like blocking, filters are per account and so different accounts on a server can have differing filter policies.

View File

@ -625,7 +625,7 @@ if args.filterStr:
print('Please specify a nickname')
sys.exit()
if addFilter(baseDir,args.nickname,domain,args.filterStr):
print('Filter added: '+args.filterStr)
print('Filter added to '+args.nickname+': '+args.filterStr)
sys.exit()
if args.unfilterStr:
@ -633,7 +633,7 @@ if args.unfilterStr:
print('Please specify a nickname')
sys.exit()
if removeFilter(baseDir,args.nickname,domain,args.unfilterStr):
print('Filter removed: '+args.unfilterStr)
print('Filter removed from '+args.nickname+': '+args.unfilterStr)
sys.exit()
if args.testdata: