Opened 9 years ago

Last modified 6 years ago

#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)

Add support for sending and receiving MMS.

Change History (5)

comment:1 Changed 9 years ago by TAsn

  • Component changed from SHR Image to libphone-ui
  • Description modified (diff)
  • Owner changed from ainulindale to TAsn
  • Summary changed from Add support for MMS messages =) to Add support for MMS messages
  • Type changed from defect to enhancement

comment:2 Changed 8 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:3 Changed 8 years ago by Heinervdm

  • Milestone set to MS3

comment:4 Changed 6 years ago by morphis

  • Milestone MS3 deleted

Milestone MS3 deleted

comment:5 Changed 6 years ago by iwdy23

rolex submariner for surprise

Note: See TracTickets for help on using tickets.