forked from indymedia/epicyon
Notes on filtering
parent
e0f3ac4e8c
commit
887552f5c5
18
README.md
18
README.md
|
@ -393,3 +393,21 @@ Or to unblock:
|
||||||
``` bash
|
``` bash
|
||||||
python3 epicyon.py --nickname yournick --domain yourdomain --unblock somenick@somedomain
|
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.
|
||||||
|
|
|
@ -625,7 +625,7 @@ if args.filterStr:
|
||||||
print('Please specify a nickname')
|
print('Please specify a nickname')
|
||||||
sys.exit()
|
sys.exit()
|
||||||
if addFilter(baseDir,args.nickname,domain,args.filterStr):
|
if addFilter(baseDir,args.nickname,domain,args.filterStr):
|
||||||
print('Filter added: '+args.filterStr)
|
print('Filter added to '+args.nickname+': '+args.filterStr)
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
if args.unfilterStr:
|
if args.unfilterStr:
|
||||||
|
@ -633,7 +633,7 @@ if args.unfilterStr:
|
||||||
print('Please specify a nickname')
|
print('Please specify a nickname')
|
||||||
sys.exit()
|
sys.exit()
|
||||||
if removeFilter(baseDir,args.nickname,domain,args.unfilterStr):
|
if removeFilter(baseDir,args.nickname,domain,args.unfilterStr):
|
||||||
print('Filter removed: '+args.unfilterStr)
|
print('Filter removed from '+args.nickname+': '+args.unfilterStr)
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
if args.testdata:
|
if args.testdata:
|
||||||
|
|
Loading…
Reference in New Issue