David (krinchan) wrote in lj_dev,
David
krinchan
lj_dev

Sprint Picture Messaging

I'm unsure of the status of the code that operates on Sprint Picture Messages. I remember there being some issues at getting a full sized picture out of the email that sprint sends.

Apparently, at some point in the recent past, Sprint updated their message format.

In the email's HTML within the head tag is the following snippet of code:

<!-- lsPictureMail-Share-xECrJJJa7YkkShrh88Xa-comment
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF&#45;8&quot;?&gt;
&lt;shareMessage&gt;
&lt;messageContents type=&quot;PICTURE&quot;&gt;
&lt;messageText&gt;&lt;/messageText&gt;
&lt;mediaItems&gt;
&lt;mediaItem id=&quot;1&quot;&gt;
&lt;title&gt;&lt;/title&gt;
&amp;lt;url&amp;gt;http://pictures.sprintpcs.com/getMMBOXMessageMedia?id=Xw1004H8sLv6S3x76lVPYvc9HWuygho0BshI7xXfRfrP6F4ZKiuVyQmk5gW%2FZUWGqyw0fwJJvr72%0Afs0z8ACBhjJsnD%2BZ3LRTQaPHbPraJ0OGkNKbb8WqPLAhzNBo9LXuTGEU%2Feajp%2FrDF%2FMLLipztg%3D%3D%0A&amp;lt;/url&amp;gt;

&lt;urlExpiration&gt;2007&#45;08&#45;24T17:57:38Z&lt;/urlExpiration&gt;
&lt;/mediaItem&gt;
&lt;/mediaItems&gt;
&lt;/messageContents&gt;
&lt;/shareMessage&gt;

-->

The key here, is the url between "&amp;lt;url&amp;gt;" and "&amp;lt;url&amp;gt;". On all emails recieved from my phone, this URL leads to the full sized picture. A quick regex on the message coming into the application, such as "(&amp;lt;url&amp;gt;)(.*)(&amp;lt;/url&amp;gt;)" would effectively extract the URL of the full sized picture. Even better, when sending multiple pictures in one message, the result is multiple URL lines. This could effectively allow Sprint users to finally post multiple pictures in one post.

Is this implementable within the source code?

EDIT: Sorry about that. Don't know why this post just magically appeared on everyone's friends list now. It didn't even affect my friend's list. La-de-dah...*head desk*
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 7 comments