Reply
Thread Tools
merlin1991's Avatar
Posts: 125 | Thanked: 1,142 times | Joined on Feb 2010 @ Austria
#21
Originally Posted by Nikos Alexandris View Post
The only place from where I could execute the binary smsExport was from /home/user. Anywhere else, e.g. under /home/user/MyDocs/N9Export I could neither alter permissions nor let it run (always permission denied).
If you have a look at mount, especially this bit:
Code:
/dev/mmcblk0p1 on /home/user/MyDocs type vfat (rw,nosuid,nodev,noexec,noatime,nodiratime,uid=29999,fmask=0133,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,rodir,errors=remount-ro)
you'll see, that "noexec" flag ist set for MyDocs which prevents you from running executables from there.


Regarding your problem, never forget our dear friend aegis. You have to run the application as the developer user since he is the only user with enough aegis credentials to access your messages database.
__________________
"Fog is neither water nor air, it's something between." Merlin
 
Posts: 1,067 | Thanked: 2,383 times | Joined on Jan 2012 @ Finland
#22
Otherwise works ok, but it scrambles ِنه characters on import, maybe it should export/import in utf8 or something?

And on N9 side you needed to run it as developer and not as user.
__________________
IRC: jonni@freenode
Sailfish: ¤ Qt5 SailfishTouchExample ¤ Qt5 MultiPointTouchArea Example ¤ ipaddress ¤ stoken ¤ Sailbox (Dropbox client) ¤
Harmattan: ¤ Presence VNC for Harmattan ¤ Live-F1 ¤ BTinput-terminal ¤ BabyLock ¤ BabyLock Trial ¤ QML TextTV ¤
Disclaimer: all my posts in this forum are personal trolling and I never post in any official capacity on behalf of any company.

Last edited by rainisto; 2013-12-25 at 17:46.
 

The Following User Says Thank You to rainisto For This Useful Post:
zlatko's Avatar
Posts: 861 | Thanked: 936 times | Joined on Feb 2010 @ Bulgaria
#23
Worked perfect on my N9 and Jolla Thanks everyone involved!
 
merlin1991's Avatar
Posts: 125 | Thanked: 1,142 times | Joined on Feb 2010 @ Austria
#24
Another day, another update:

As suggested by rainisto the application now saves to utf-8 files.
It also can ex/import the call history now by using the -c flag.

New binaries:
http://cdnm.at/~christian/Harmattan-...at/jollaImport
http://cdnm.at/~christian/Harmattan-SMS-Boat/n9Export

Source still at github:
https://github.com/merlin1991/Harmattan-SMS-Boat
__________________
"Fog is neither water nor air, it's something between." Merlin
 

The Following 16 Users Say Thank You to merlin1991 For This Useful Post:
Posts: 22 | Thanked: 18 times | Joined on Oct 2012
#25
Originally Posted by merlin1991 View Post
Another day, another update:

As suggested by rainisto the application now saves to utf-8 files.
It also can ex/import the call history now by using the -c flag.

New binaries:
http://cdnm.at/~christian/Harmattan-...at/jollaImport
http://cdnm.at/~christian/Harmattan-SMS-Boat/n9Export

Source still at github:
https://github.com/merlin1991/Harmattan-SMS-Boat
Amazing! I can't get it working though :-(
Code:
/home/user # whoami 
root
/home/user # ls -lah n9Export 
-rwxr-xr-x    1 user     users     259.1K Dec 26 06:14 n9Export
/home/user # ./n9Export -s sms_n9
"GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 2 matched rules; type="method_call", sender=":1.148" (uid=0 pid=6202 comm="./n9Export -s sms_n9 ") interface="org.freedesktop.Tracker1.Steroids" member="Query" error name="(unset)" requested_reply=0 destination="org.freedesktop.Tracker1" (uid=29999 pid=1346 comm="/usr/lib/tracker/tracker-store "))" 
# sms:  0 
QTrackerDirectSelectResult: QSparqlError(9, "GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 2 matched rules; type="method_call", sender=":1.148" (uid=0 pid=6202 comm="./n9Export -s sms_n9 ") interface="org.freedesktop.Tracker1.Steroids" member="Query" error name="(unset)" requested_reply=0 destination="org.freedesktop.Tracker1" (uid=29999 pid=1346 comm="/usr/lib/tracker/tracker-store "))", 4) "SELECT ?message nie:plainTextContent(?message) rdf:type(?message) nmo:communicationChannel(?message) nmo:sentDate(?message) nmo:messageId(?message) nmo:receivedDate(?message) nie:contentLastModified(?message) nmo:isSent(?message) nmo:isDraft(?message) nmo:isRead(?message) nmo:encoding(?message) nie:characterSet(?message) nie:language(?message) (SELECT GROUP_CONCAT(tracker:coalesce(nco:imID(?medium), nco:phoneNumber(?medium), ?medium), "\u001e") WHERE { ?from nco:hasContactMedium ?medium . }) (SELECT GROUP_CONCAT(tracker:coalesce(nco:imID(?medium), nco:phoneNumber(?medium), ?medium), "\u001e") WHERE { ?to nco:hasContactMedium ?medium . }) nmo:phoneMessageId(?message) WHERE { SELECT ?message ?from ?to  IF (nmo:isSent(?message) = true, ?to, ?from) AS ?target  ?message WHERE {?message nmo:from ?from ; nmo:to ?to .  ?message rdf:type nmo:SMSMessage . } }"
 
zlatko's Avatar
Posts: 861 | Thanked: 936 times | Joined on Feb 2010 @ Bulgaria
#26
@Nikos Alexandris
Run
Code:
develsh
prior executing the export.
 
Posts: 22 | Thanked: 18 times | Joined on Oct 2012
#27
Originally Posted by zlatko View Post
@Nikos Alexandris
Run
Code:
develsh
prior executing the export.
Thank you! Apologies for my ignorance. It works :-). For the "-c" option, however, I get countless lines of:

Code:
libqtcontacts-tracker: engine.cpp:1591: Not cleaning up obsolete resources for nao:hasTag property since the property's range is too generic (rdfs:Resource).
What does it actually mean?
 
Posts: 22 | Thanked: 18 times | Joined on Oct 2012
#28
Originally Posted by Nikos Alexandris View Post
Thank you! Apologies for my ignorance. It works :-). For the "-c" option, however, I get countless lines of:

Code:
libqtcontacts-tracker: engine.cpp:1591: Not cleaning up obsolete resources for nao:hasTag property since the property's range is too generic (rdfs:Resource).
What does it actually mean?
In any case, it worked. Awesome work!!
 
Posts: 9 | Thanked: 2 times | Joined on Mar 2011 @ Freiburg / Germany
#29
When i try to export my sms on n9 i get following error message:

Code:
~/MyDocs/SMSBackup $ develsh n9export -s 20132612
n9export: line 1: syntax error: unexpected word (expecting ")")
What I'mdoing wrong?

Last edited by nicetux; 2013-12-26 at 13:35.
 
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#30
Originally Posted by nicetux View Post
When i try to export my sms on n9 i get following error message:

Code:
~/MyDocs/SMSBackup $ develsh n9export -s 20132612
n9export: line 1: syntax error: unexpected word (expecting ")")
What I'mdoing wrong?

you should first launch "develsh", then "./n9export"
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 10:06.