Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Email reminders for semantic mediawiki data

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 reminder
Octocat-spinner-32 requirements
Octocat-spinner-32 tests
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.mkd
README.mkd

MozReminder

MozReminder is a script that fetches the list of pending tasks on Mozilla Hispano, as well as their owners, and sends email reminders letting them know when they are overdue or close to being overdue.

Requirements

Install requirements

pip install -r requirements/requirements.txt

Config

Create local_config.py. You can use local_config.py.example and edit it.

HOST =  'mailserver:port'
MAIL_FROM = 'tareas@mozhispano.com'
username = 'username'
password = 'password'

Note: if your python version is earlier than to 2.7, you have to install python-argparse

Use

python smw-reminder.py --<option>

options:

--tasks for tasks --meetings-threedays and --meetings-todayfor meetings

Test

pytest

For tests you need install tests requirements

pip install -r requirements/tests.txt

Then you can run tests with

py.test

local SMTP

Another way you can test this is trying in your local machine, for this you need a local SMTP server. You can do this with:

python -m smtpd -n -c DebuggingServer localhost:1025

You also need to comment these lines:

# server.starttls()
# server.login(username,password)

Finally, set the HOST in the config file to localhost:1025 and test.

Something went wrong with that request. Please try again.