Documentation on Banned Address is missing some parts
List settings allows banning email addresses directly or patterns by regular expressions. This is not reflected anywhere in documentation for REST API. models/bans.py
isn't documented at all, atleast I couldn't find it.
Only by looking at the code for BanManager
, I was able to figure out that regular expressions are valid values.
Also, this needs to be validated properly in REST too, right now, you can ban very random stuff, which may not be a valid regexp or email.