Active Topics

 



Notices


Reply
Thread Tools
Posts: 88 | Thanked: 25 times | Joined on Jan 2010
#111
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!
 
Posts: 97 | Thanked: 103 times | Joined on Sep 2009 @ switzerland
#112
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?
 

The Following User Says Thank You to ziller For This Useful Post:
Posts: 88 | Thanked: 25 times | Joined on Jan 2010
#113
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!!!
 
Posts: 11 | Thanked: 1 time | Joined on Jan 2010
#114
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.
 
Posts: 97 | Thanked: 103 times | Joined on Sep 2009 @ switzerland
#115
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
 
Posts: 11 | Thanked: 1 time | Joined on Jan 2010
#116
Originally Posted by ziller View Post
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.
 
Posts: 97 | Thanked: 103 times | Joined on Sep 2009 @ switzerland
#117
Originally Posted by shamoni8 View Post
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)
 

The Following User Says Thank You to ziller For This Useful Post:
Posts: 11 | Thanked: 1 time | Joined on Jan 2010
#118
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?
 
Posts: 97 | Thanked: 103 times | Joined on Sep 2009 @ switzerland
#119
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's Avatar
Posts: 1,648 | Thanked: 2,122 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#120
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.
 

The Following User Says Thank You to Saturn For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 13:43.