Skip to main content

MailBot: execute callback on mail reception

Project description

Build Status

MailBot: register callbacks to be executed on mail reception.

Hacking

Setup your environment:

git clone https://github.com/novagile/mailbot.git
cd mailbot

Hack and run the tests using Tox to test on all the supported python and Django versions:

make test

There’s also a live test suite, that you may run using the following command:

make livetest

Please note that to run live tests, you need to create a livetest_settings.py file with the following content:

# mandatory
HOST = 'your host here'
USERNAME = 'your username here'
PASSWORD = 'your password here'

# optional
# check http://imapclient.readthedocs.org/en/latest/#imapclient.IMAPClient)
PORT = 143  # port number, usually 143 or 993 if ssl is enabled
USE_UID = True
SSL = False
STREAM = False

For convenience, you can copy the provided sample, and modify it:

$ cp livetest_settings.py.sample livetest_settings.py

Changelog

0.2 (2013-03-28)

  • automatically decode headers, allowing for unicode subjects, senders, recipients, CCs and body

  • new timeout parameter: mails in the processing state for longer than this timeout will be reprocessed

  • use SEEN and FLAGGED to manage mail states (not processed, processing, processed)

  • captures from the rules’ regexps available in Callback.matches (previously, this was storing MatchObjects)

0.1 (2013-03-20)

  • first version

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mailbot-0.2.tar.gz (12.5 kB view details)

Uploaded Source

File details

Details for the file mailbot-0.2.tar.gz.

File metadata

  • Download URL: mailbot-0.2.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mailbot-0.2.tar.gz
Algorithm Hash digest
SHA256 76cefc4c60ca879410629082b0975d072a960345c57ffaf2fbf07581f7162da6
MD5 a2fd3768914c5397eee423057f836bfb
BLAKE2b-256 febb0c5013125fc47445643a03e3a9f5e623fc20eed31d65c3448a99db9989ac

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page