This little script helps to import messages from other mobile OSs to Sailfish OS. The first version only supports Android SMS messages exported by SMS Backup & Restore.
Please use with caution, I wrote this script for personal use and the only test case was the import of my old messages from my Android phone.
Copy both python files to the same directory on your Sailfish OS phone. The XML-File with the messages can be placed in a directory of your choice on your device.
Open a command shell on your device and navigate to the path were you put the script.
To import from a SMS Backup & Restore XML file (backup is created):
[nemo@Jolla]$ python sms_import.py --import [xml-file]
To backup the current messages database:
[nemo@Jolla]$ python sms_import.py --backup
To restore from a backup (replaces everything):
[nemo@Jolla]$ python sms_import.py --restore [backup-db-file]
If no error message is printed the import was successful.