maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   HOWTO: Importing SMS messages from Nokia phones to N900 (https://talk.maemo.org/showthread.php?t=37354)

aiyush 2010-01-27 18:45

Re: HOWTO: Importing SMS messages from Nokia phones to N900
 
Using ziller's code. Messages with a comma get truncated at two characters before comma. Like a messaage reading

Sure thing, let's do it.

on importing becomes

Sure thi

Anybody with a clue on how to fix this. Thanks!

ziller 2010-01-27 20:14

Re: HOWTO: Importing SMS messages from Nokia phones to N900
 
I didn't modify the original code in any way, just added the patches and the uuid bit... so I guess you'd run into the same problem also with the other binaries posted here.

But I assume you're using comma as the field delimiter? I ran into the same annoying issue as well, ended up using ; as delimiter (only to find out that messages with ;) in it were truncated). Using tab as delimiter might work better?

aiyush 2010-01-28 03:36

Re: HOWTO: Importing SMS messages from Nokia phones to N900
 
Many thanks ziller, both for your code and your tip. I used | as a delimiter and it worked like a charm - even for a user like me with zero Programming Quotient!!!

shamoni8 2010-01-29 14:21

Re: HOWTO: Importing SMS messages from Nokia phones to N900
 
i thought it would be a peice of cake to get messages imported. who knew nokia would go all ****** on us and nobody could figure out how to do this without making us do it a million times before it works? i mean what happened to the "COMMUNITY" that they keep harping about?

everything i do in the first few pages (until the second command) comes up with smsimporter file or directory not found. i put the ***** in documents and the main folder, can see it on the file manager but nothing. this completely sucks, Nokia fail right here.

ziller 2010-01-29 15:13

Re: HOWTO: Importing SMS messages from Nokia phones to N900
 
When you copy files to your device, they land in /home/user/MyDocs/. The file manager is limited to this folder (and its subfolders) and cannot see files or directories outside it. You can also not execute any binaries that are within /home/user/MyDocs, that is why you have to move them to your /home/user/ folder first.

In xterm:
Code:

cp /home/user/MyDocs/smsimporter /home/user/
cp /home/user/MyDocs/sms.csv /home/user/
chmod +x /home/user/smsimporter
cd /home/user/
run-standalone.sh ./smsimporter sms.csv


And no need to blame Nokia on this, they have nothing to do with the sms importing tools posted here - it's all a community effort ;)

shamoni8 2010-01-29 17:05

Re: HOWTO: Importing SMS messages from Nokia phones to N900
 
Quote:

Originally Posted by ziller (Post 501064)
When you copy files to your device, they land in /home/user/MyDocs/. The file manager is limited to this folder (and its subfolders) and cannot see files or directories outside it. You can also not execute any binaries that are within /home/user/MyDocs, that is why you have to move them to your /home/user/ folder first.

In xterm:
Code:

cp /home/user/MyDocs/smsimporter /home/user/
cp /home/user/MyDocs/sms.csv /home/user/
chmod +x /home/user/smsimporter
cd /home/user/
run-standalone.sh ./smsimporter sms.csv


And no need to blame Nokia on this, they have nothing to do with the sms importing tools posted here - it's all a community effort ;)

i know its the community effort, and its not very encouraging, to be honest.
it is a nokia fail cos it is a phone, after all. how about some back support with your own older phones?

also, i tried, and the very first command says (as before)
"cp: canntot stat '/home/user/MyDocs/smsimporter' : No such file or directory"
i assume it forgot to add exists, but u get my point.

here's what i did. i unrared the stuff in the first post, put it in the main directory, it didn't work (didn't try moving, to be honest)

the file is in documents now, and isn't working, still. will try to put it in the main folder and try too.
what i'm doing is putting just the files, and not the entire folder. dunno if that's what i'm supposed to do, since the instructions are vague, at best.

ziller 2010-01-29 22:40

Re: HOWTO: Importing SMS messages from Nokia phones to N900
 
Quote:

Originally Posted by shamoni8 (Post 501246)
also, i tried, and the very first command says (as before)
"cp: canntot stat '/home/user/MyDocs/smsimporter' : No such file or directory"
i assume it forgot to add exists, but u get my point.

here's what i did. i unrared the stuff in the first post, put it in the main directory, it didn't work (didn't try moving, to be honest)

the file is in documents now, and isn't working, still. will try to put it in the main folder and try too.
what i'm doing is putting just the files, and not the entire folder. dunno if that's what i'm supposed to do, since the instructions are vague, at best.

Sorry, I was assuming that you copied everything from your computer directly to the main folder (the one you see when you plug the n900 to your computer), so the paths were based on that. I have of course no idea where you have unpacked the smsimporter file, so you'd probably have to find it yourself and then adjust the path in the first command accordingly.


(hint: find /home/user/ -iname 'smsimporter' could probably tell you the correct path to the file)

shamoni8 2010-01-30 17:22

Re: HOWTO: Importing SMS messages from Nokia phones to N900
 
dude, thanks for the last line. it helped immensely. it was in the .documents folder.
i tried the instructions, but it said something like usr/bin/run-standalone.sh: line 11: ./smsimporter: permission denied.
any idea what i could do to go around this? or am i missing something?

ziller 2010-01-31 11:57

Re: HOWTO: Importing SMS messages from Nokia phones to N900
 
Could be a couple of things:

- Did you move or copy smsimporter to /home/user/ (you cannot execute programs within MyDocs)
- Did you chmod +x smsimporter after copying it to /home/user/

To make sure everything's correct, switch to the folder where you copied smsimporter to (cd /home/user), make sure the file is there (ls -l) and then proceed with chmod and run-standalone.

(Maybe stating the obvious, but if your file was within .documents, then you would have to adjust the cp /home/user/MyDocs/smsimporter /home/user/ line from my previous post to cp /home/user/MyDocs/.documents/smsimporter /home/user/ and then repeat the same for sms.csv)

Saturn 2010-01-31 15:01

Re: HOWTO: Importing SMS messages from Nokia phones to N900
 
Hi, Some comments for any of the developers.

The smsimporter (I think) needs one more small correction.
When the messages are parsed the " at the end of the text is not being removed.

for example look at free_text value below (note, the X are my edits):
Code:


service_id:RTCOM_EL_SERVICE_SMS,event_type_id:RTCOM_EL_EVENTTYPE_SMS_OUTBOUND,storage_time:1264293660,start_time:1264293660,end_time:1264293660,is_read:1,local_uid='ring/tel/ring',local_name='<SelfHandle>',remote_uid='+XXXXXXXXXXX',remote_name='XXXXXX',remote_ebook_uid='378',free_text='Testing"',group_uid='5103250'

The smsexporter needs padding on the numbers for the date and time:
for example it outputs:

Code:


sms,submit,"","+xxxxxxxxxxx","","2010. 1.24  1:41","","Testing"

instead of the correct:

Code:

sms,submit,"","+xxxxxxxxxxx","","2010.01.24 01:41","","Testing"
Hope it's useful and thanks for sharing.


All times are GMT. The time now is 09:44.

vBulletin® Version 3.8.8