Getting the (numeric) phone number of SMS in Inbox and Sent folders
| Mon, 2008-05-26 10:06 | |
|
I try to read the SMS store, Inbox and Send folders, and I want to get the phone number of the messages. The pure, originally used, numeric phone number, *not* translated to a contact name if a contact can be found with the corresponding mobile phone number. TMsvEntry.iDetail is translated if possible and thus not the number that I want. CSmsHeader::FromAddress() seems to return the same as TMsvEntry.iDetail, translated as well, according to my tests. CSmsHeader::Recipients[]::Address was empty, at least for messages in the Inbox (maybe not surprising, but I tried nevertheless.) Do I really have to consult the Contacts store to translate the contact name back to the phone number? By the way, of course one can ask whether the message store really does store the phone numbers for SMS. Maybe entries are already stored in a translated state, with the phone number long gone? I am nearly sure that this is *not* the case. A hexdump of messages in the store on my UIQ2 phone showed the numbers. And if I rename a contact on my UIQ3 phone, the messages in the store are shown with the new contact name - of course, one could say, because that makes sense, and it is a strong hint that the system still knows the phone numbers. René Brunner |
|





