skip to navigation
skip to content

bonzo 0.1.2

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

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
 
File Type Py Version Uploaded on Size
bonzo-0.1.2.tar.gz (md5) Source 2014-02-05 4KB