Receiving SMS

# This script waits for an incoming sms, reads its # content and shows it inside a pop-up note # NOTE: PyS60 version 1.3.1 or higher is needed to run this script.  import inbox, appuifw, e32  def message_received(msg_id):         box = inbox.Inbox()         sms_text = box.content(msg_id)          appuifw.note(u"sms content: " + sms_text , "info")         app_lock.signal()  box = inbox.Inbox() box.bind(message_received)  print "Waiting for new SMS messages.." app_lock = e32.Ao_lock() app_lock.wait() print "Message handled!"