Skip to main content

Bonzo is a minimalistic SMTP Proxy built on top of Tornado.

Project description

Travis CI status Coveralls status Latest PyPI version Number of PyPI downloads

About

Bonzo is a minimalistic SMTP Proxy built on top of Tornado.

import tornado.ioloop
import email

from bonzo.server import SMTPServer


def receive_message(message):
    print "New received message: "
    print "From: " + message['from']
    print "Subject: " + message['subject']
    for line in email.iterators.body_line_iterator(message):
        print line

SMTPServer(receive_message).listen(25)
tornado.ioloop.IOLoop.instance().start()

Installation

You can to use pip to install Bonzo:

$ pip install bonzo

Or using last source:

$ pip install git+git://github.com/puentesarrin/bonzo.git

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

bonzo-0.1.2.tar.gz (4.8 kB view details)

Uploaded Source

File details

Details for the file bonzo-0.1.2.tar.gz.

File metadata

  • Download URL: bonzo-0.1.2.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for bonzo-0.1.2.tar.gz
Algorithm Hash digest
SHA256 910fb88876d51972fd7ead711d5d4c393dc47d9799df59a0619624e22240c27a
MD5 8437f6a92115a64c90af6a12f386fbc9
BLAKE2b-256 c2c5072d1110348b0b8e7c2366fa11d8ac1d69e9f72de1821484da4a52cd2a7c

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