From: Daniel P. <da...@co...> - 2010-06-08 23:52:33
|
I previously posted a fix that I used under Linux to get my LG vx9200 (env3) phone working with bitpim, so it would not give errors when reading the SMS messages. I have now compiled the fix for Windows: IMPORTANT: The following build has not been tested with any phones other than the LG vx9200 and will certainly break on many LG phones due to the modification not being done in the proper clean way. http://www.anyoneeb.net:83/~anyoneeb/temp/stuff/bitpim-trunk-4835-env3-1-dap-setup.exe At least one person has e-mailed me asking for a Mac OS X build, but I do not have access to a Mac. Could someone please make an OS X build of this? The following is the code changes from SVN that this build has: Note that the following diff changes how the vx9100 SMS works because that is what the vx9200 code references. I think the proper thing to do is to just copy the section from the vx9100 file into the vx9200 file, but I was just trying to get it working. Index: src/phones/com_lgvx9200.py =================================================================== --- src/phones/com_lgvx9200.py (revision 4835) +++ src/phones/com_lgvx9200.py (working copy) @@ -48,6 +48,33 @@ # - phonebook - LG Phonebook v1 Extended # - SMS - same dir structure as the VX-8800 + def _getoutboxmessage(self, sf): + entry=sms.SMSEntry() + entry.folder=entry.Folder_Sent + entry.datetime="%d%02d%02dT%02d%02d%02d" % ((sf.timesent)) + # add all the recipients + for r in sf.recipients: + if r.number: + confirmed=(r.status==5) + confirmed_date=None + entry.add_recipient(r.number, confirmed, confirmed_date) + entry.subject=sf.subject + txt="" + if sf.num_msg_elements==1 and not sf.messages[0].binary: + txt=self._get_text_from_sms_msg_without_header(sf.messages[0].msg, sf.messages[0].length) + else: + for i in range(sf.num_msg_elements): + txt+=self._get_text_from_sms_msg_with_header(sf.messages[i].msg, sf.messages[i].length) + entry.text=unicode(txt, errors='ignore') + if sf.priority==0: + entry.priority=sms.SMSEntry.Priority_Normal + else: + entry.priority=sms.SMSEntry.Priority_High + entry.locked=sf.locked + entry.callback=sf.callback + return entry + + #------------------------------------------------------------------------------- parentprofile=com_lgvx11000.Profile class Profile(parentprofile): Index: src/phones/p_lgvx9100.p =================================================================== --- src/phones/p_lgvx9100.p (revision 4835) +++ src/phones/p_lgvx9100.p (working copy) @@ -350,7 +350,7 @@ 1 UINT msg_id 1 UINT msg_length * SMSINBOXMSGFRAGMENT msg_data - 49 USTRING sender + 21 USTRING sender 1 UINT sender_length 2 UINT unk3 33 USTRING sender_name |