Sergio Guillen 9e0ac1ce56 Added new interval times for moderation | %!s(int64=8) %!d(string=hai) anos | |
---|---|---|
sympa | %!s(int64=8) %!d(string=hai) anos | |
.gitignore | %!s(int64=8) %!d(string=hai) anos | |
README.md | %!s(int64=8) %!d(string=hai) anos | |
blacklist.txt.sample | %!s(int64=8) %!d(string=hai) anos | |
configuration.py | %!s(int64=8) %!d(string=hai) anos | |
init.sh | %!s(int64=8) %!d(string=hai) anos | |
logs.py | %!s(int64=8) %!d(string=hai) anos | |
main.py | %!s(int64=8) %!d(string=hai) anos | |
settings.json.sample | %!s(int64=8) %!d(string=hai) anos | |
subscribers.txt.sample | %!s(int64=8) %!d(string=hai) anos |
This python script can help, it reads a blacklist.txt file that contains emails that need to be hold for moderation even if an email comes from someone already subscribed in the list.
The script checks if the incomming messages to a mailing list. If the incomming message's author comes from an in email that is in the blacklist.txt file the script will left moderators to aprove the message.
If the email comes from an email that is not in the blacklist.txt file and the email belongs to someone subscribed in the mailing list, the script will DISTRIBUTE the message.
The script is designed to keep a sympa based mailing list (like mailing list servers used in riseup.net) moderated in that way.
In order to create a default settings-file execute:
$ ./init.sh
The settings values that need to be set on settings.json file are:
The script works the like this:
The riseup list has to send all messages for moderation.