Skip to content

nena1/OxwallDigest

Repository files navigation

Summary

A simple python script which is able to produce a digest HTML mail on the most recent activities of an oxwall community software platform (see http://www.oxwall.org/).

The mail is sent either to all users (excluding a configurable blacklist) or to a configurable whitelist of mail addresses.

Installation

Since there are no dependencies to the oxwall php scripts, these digest scripts can be run on an arbitrary machine. It only must have access to the oxwall database and to an SMTP server.

Copy the scripts to a folder of your choice, e.g.

/opt/oxdigest/

Create a folder where you want to have the log file, e.g.

/var/log/oxdigest/

Install the following python dependencies:

sudo apt-get install python-mysqldb
sudo apt-get install python-sqlalchemy
sudo apt-get install python-jinja2
sudo apt-get install python-html2text

Adapt the configuration.py to fit your system settings. Mind that some of the fields expect Python objects.

Add the script to the cron:

crontab -e

For example running it all Friday morning at 2 a.m.:

0 2 * * 5 python /opt/oxdigest/launch.py

About

Digest script for nena1

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •