Skip to content

merlin1991/Harmattan-SMS-Boat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Harmattan SMS Boat
==================

An exporter for SMS/Calls from Harmattan to a semi CSV structure

The resulting CSV is written to a file encoded as utf-8 in the format:
PhoneNumber;IN/OUT;StartTime;EndTime;SMSText

Calls have a similar format:
PhoneNumber;IN/OUT;MISSED/OK;StartTime;EndTime

If the SMSText contains newlines a space is added after the newline
--> lines starting with a space are a continuation of the last sms text.

The times(dates) are formatted with Qt::ISODate, excerpt from the Qt 5 docs:
ISO 8601 extended format: either YYYY-MM-DD for dates or YYYY-MM-DDTHH:MM:SS, YYYY-MM-DDTHH:MM:SSTZD
(e.g., 1997-07-16T19:20:30+01:00) for combined dates and times.

Sample csv (for sms):
+xxxxxxxxx;IN;2013-11-29T08:07:09Z;2013-11-29T08:07:49Z;Your jolla dev kit is on it's way!
 Should be there by tomorrow
+xxxxxxxxx;OUT;2013-11-29T07:11:42Z;2013-11-29T07:11:40Z;Thanks m8

Building/Installing
===================

The n9 exporter must be built inside a harmattan scratchbox.
Building requires libcommhistory-dev.

cd n9Export
qmake
make


The Sailfish import must be built inside the sailfish mer-sdk.
Building requires libcommhistory-qt5-devel and qtcontacts-sqlite-qt5-extension available in the target.

Make sure the SDK has the same release version as the phone:
sb2 -t SailfishOS-armv7hl -m sdk-install -R ssu status

If not this might upgrade the sdk vm far enough:
sb2 -t SailfishOS-armv7hl -m sdk-install -R ssu re $RELEASE
sb2 -t SailfishOS-armv7hl -m sdk-install -R ssu updaterepos
sb2 -t SailfishOS-armv7hl -m sdk-install -R ssu zypper update

Installing the library:
cd /srv/mer/targets/SailfishOS-armv7hl
sb2 -t SailfishOS-armv7hl -m sdk-install -R zypper in libcommhistory-qt5-devel qtcontacts-sqlite-qt5-extensions

Building the importer:
cd jollaImport
sb2 -t SailfishOS-armv7hl qmake
sb2 -t SailfishOS-armv7hl make

About

ex/Importer for call logs and sms from harmattan -> sailfish

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published