-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Importing vmg files #93
Comments
VMG is apparently an ancient, proprietary format used by Nokia to store SMS messages (see here, here). I'm not going to directly incorporate support for it into SMS I/E, but it may be possible to write a converter to convert VMG messages into SMS I/E compatible JSON. If you're willing to post a few of the files (that do not contain sensitive or private data or metadata), I can take a look at them, and if the format looks simple and easily parseable, I may be able to write such a converter. |
I assume the original files end with the
Yes, those are clearly ISO 8601 combined date and time representations, with the trailing |
Yes, that's right. |
Okay, I have written (in Python 3) an initial attempt at a converter. It seems to work correctly on the three messages you provided, but I don't know how flexible / complex the VMG format is, so I have no idea whether it will work on other VMG messages. To use it, put some VMG files in a directory containing nothing else (e.g.,
One thing I'm not sure about is how to correctly distinguish between incoming and outgoing messages. Currently, we simply assume that if |
Hello, $ file SMS/0001.vmg On a win10 box, they are seen as UTF-16 Little-endian (according to Notepad). Converted to UTF-16 Big-endian (on win) now linux likes them better: There is an issue |
This is why I really need to access to files that are as close to the originals as possible. I hard-coded an assumption of UTF-16 since on my Debian Sid system, the versions you posted present as UTF-16 little-endian:
It works fine here, without error. FTR, the file presents as:
All four of the files I have begin with proper BOM marks: the first three with |
On second thought, the problem is clearly that your version of Python is too old - |
Hello, |
I imported the bulk of the messages. So far, the only issue is with the sent messages: they consider the receiver number as the sender. Take for example the 2.txt file, this is the relevant part: BEGIN:VCARD N:Nome contains the name of the receiver (in this case "Nome", this has been redacted) In the imported file +39338000000 is treated as the number of the sender. |
I'm not sure what you're seeing, but on my device, it looks correct: +39338000000 is shown as the recipient's number ("To:" in Message Details), not the sender's. |
Hello,
I have found on an old PC a bunch of old smses in vmg format, they are from an old nokia phone I had ages ago. Any chance to import them?
Regards.7
The text was updated successfully, but these errors were encountered: