|
2009-12-30
, 17:44
|
Posts: 94 |
Thanked: 28 times |
Joined on Oct 2009
|
#82
|
|
2009-12-30
, 18:25
|
Posts: 28 |
Thanked: 0 times |
Joined on Dec 2009
|
#83
|
- Added updated version of smsimporter. This version should automatically detect delimiter.
|
2009-12-30
, 20:16
|
Posts: 94 |
Thanked: 28 times |
Joined on Oct 2009
|
#84
|
I started working on an adapted version which parses the XML files produced by gammu/wammu.
It seems to work fine, though I need to fine-tune date handling.
But I have a question. At the moment it seems that conversations are ordered by id (in el.db) and not by received (or sent) time so all the imported sms will be added *after* previously received sms. Do you know a way to change that? (except wiping the el.db, import sms and then add back the events).
Thanks for your code, btw!
|
2009-12-30
, 20:26
|
Posts: 94 |
Thanked: 28 times |
Joined on Oct 2009
|
#85
|
Hmh ok in fact it might be related to the “storage_time” indeed. Your code (and mine) sets the storage_time to the same time as the {start,end}_time but it's ignored by rtcom. But it might be possible to fix that later using a sqlite3.
|
2009-12-30
, 22:17
|
Posts: 121 |
Thanked: 75 times |
Joined on Oct 2009
|
#86
|
Oh, and another problem is that it seems I can't erase those imported sms.
gint id = rtcom_el_add_event (el, ev, NULL); if(id > 0) { uuid_t uuid; char key[UUID_STR_LEN + 1]; uuid_generate_random (uuid); uuid_unparse(uuid, key); gint header_id = rtcom_el_add_header(el, id, "message-token", key, NULL); if(header_id == -1) g_debug("header insertion failed"); }
|
2009-12-30
, 23:22
|
Posts: 94 |
Thanked: 28 times |
Joined on Oct 2009
|
#87
|
|
2009-12-31
, 00:13
|
Posts: 121 |
Thanked: 75 times |
Joined on Oct 2009
|
#88
|
Yep, thanks. With that code I can now select the sms, and copy/forward/delete it.
I know just need to be able to reorder them and I'll be able to import for good all my previous sms.
|
2009-12-31
, 11:16
|
Posts: 94 |
Thanked: 28 times |
Joined on Oct 2009
|
#89
|
|
2009-12-31
, 19:32
|
Posts: 28 |
Thanked: 0 times |
Joined on Dec 2009
|
#90
|
It seems to work fine, though I need to fine-tune date handling.
But I have a question. At the moment it seems that conversations are ordered by id (in el.db) and not by received (or sent) time so all the imported sms will be added *after* previously received sms. Do you know a way to change that? (except wiping the el.db, import sms and then add back the events).
Thanks for your code, btw!