Inbox objects have the following functions:
callbackgets called with the received message ID. The received message can be other than an SMS message.
If the message received is deleted immediately after e.g. checking the message content, the "new message" sound and dialog are not activated. This functionality might be useful in notification type of applications.
>>> import inbox >>> i=inbox.Inbox() # Give inbox.ESent as parameter for sent SMSes >>> m=i.sms_messages() >>> i.content(m) u'foobar' >>> i.time(m) 1130267365.03125 >>> i.address(m) u'John Doe' >>> i.delete(m) >>> >>> import inbox >>> id=0 >>> def cb(id_cb): ... global id ... id=id_cb ... >>> i=inbox.Inbox() >>> i.bind(cb) >>> # Send an SMS to your inbox here. The "id" gets updated >>> i.address(id) u'John Doe' >>> i.content(id) u'print 1' >>>
See About this document... for information on suggesting changes.