rendered paste body# Copyright (c) 2009 Andreas Schreiber <Andreas.Schreiber@dlr.de>import syssys.path.append("e:\\Python")# PyS60import appuifw import e32import inbox# Twytfrom twyt import twitterdef message_received(msg_id): box = inbox.Inbox() sms_text = box.content(msg_id) appuifw.note(u"SMS content: " + sms_text , "info") api = twitter.Twitter() api.set_auth('python_demo', '*') api.status_update(sms_text) app_lock.signal()def quit(): app_lock.signal() appuifw.app.set_exit()box = inbox.Inbox()box.bind(message_received)print "Waiting for new SMS messages..."appuifw.app.exit_key_handler = quitapp_lock = e32.Ao_lock()app_lock.wait()