Categories: S60 | Python | How To | Messaging | SMS | Code Examples
This page was last modified 19:52, 14 October 2007.
How to save sms list
From Forum Nokia Wiki
from time import ctime import codecs import inbox box = inbox.Inbox() msg = box.sms_messages() f = codecs.open('E:/Others/listSMS.txt', 'w', 'utf8') # open file in UTF8 for i in msg: f.write(box.address(i)) f.write('\n') f.write(ctime(box.time(i))) # convert seconds in a string f.write('\n') f.write(box.content(i)) f.write('\n') f.close() print 'Processing ends' f = codecs.open('E:/Others/listSMS.txt', 'r', 'utf8') print f.read() f.close()
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 6270 and +cmgs/+cmgr/+cnmi/etc. | Snarp | General Messaging | 1 | 2006-08-09 21:27 |
| SMS wap push thru SMSC | ashrafali | General Browsing | 1 | 2003-08-08 15:40 |
| SMS port | jophis | Mobile Java General | 2 | 2006-02-19 12:17 |
| Send/Receive SMS using VB | usanss | PC Suite API and PC Connectivity SDK | 15 | 2008-03-31 10:52 |
| 3530 save JPG | plkilroy | Mobile Java Media (Graphics & Sounds) | 0 | 2004-06-02 02:45 |
