Ticket #687 (new defect)
Add support for MMS messages
| Reported by: | alexxy | Owned by: | TAsn |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | libphone-ui | Version: | SHR-unstable |
| Keywords: | Cc: |
Description (last modified by TAsn) (diff)
Add support for sending and receiving MMS.
Change History
comment:1 Changed 4 years ago by TAsn
- Owner changed from ainulindale to TAsn
- Component changed from SHR Image to libphone-ui
- Type changed from defect to enhancement
- Description modified (diff)
- Summary changed from Add support for MMS messages =) to Add support for MMS messages
comment:2 Changed 3 years ago by pander
- Type changed from enhancement to defect
Also here multipart messages can be received and have to be combined first. When a message like this is available, currently the message is displayed as "This is a binary message" from sender "+".
In stead of "Show" button, a "Save as" button should be offered in the messages overview. when clikced, something like the following code should be executed:
from vikas.saurabh@… : I once wrote a dirty script to dump info in binary message. I don't konw if it works even now...basically it used to check all the binary
messages and then dump the data.
#!/usr/bin/env python
import dbus
import subprocess
bus = dbus.SystemBus()
msgs_obj = bus.get_object("org.freesmartphone.opimd",
"/org/freesmartphone/PIM/Messages")
msgsIFace = dbus.Interface(msgs_obj, "org.freesmartphone.PIM.Messages")
queryPath = msgsIFace.Query({'SMS-alphabet':'binary', 'Direction':'in'})
queryObj = bus.get_object("org.freesmartphone.opimd", queryPath)
queryIFace = dbus.Interface(queryObj, "org.freesmartphone.PIM.MessageQuery")
count = queryIFace.GetResultCount()
msgs = queryIFace.GetMultipleResults(count)
queryIFace.Dispose()
for msg in msgs:
sender = msg["Sender"]
smsData = msg["SMS-data"]
smsStr = ''
for charData in smsData:
character = chr(int(charData))
smsStr = smsStr + character
msgPath = msg["Path"]
subProc = subprocess.Popen(["file", "-bi", "-"],
stdout=subprocess.PIPE, stdin=subprocess.PIPE)
msgType = subProc.communicate(smsStr)[0].strip()
msgObj = bus.get_object("org.freesmartphone.opimd", msgPath)
msgIFace = dbus.Interface(msgObj, "org.freesmartphone.PIM.Message")
msgIFace.Update({'SMS-content_mime':msgType})
print "*****************************"
print "Sender: " + sender
print "msgPath: " + msgPath
print "msgType: " + msgType
print "content following"
print smsStr
print
comment:5 Changed 14 months ago by iwdy23
rolex submariner for surprise
Note: See
TracTickets for help on using
tickets.
