Henry Lyne (henrylyne) wrote in changelog,
Henry Lyne
henrylyne
changelog

[livejournal] r14806: LJSV-493: Parse Sprint email posts corre...

Committer: henrylyne
LJSV-493: Parse Sprint email posts correctly.

U   trunk/cgi-bin/ljemailgateway.pl
Modified: trunk/cgi-bin/ljemailgateway.pl
===================================================================
--- trunk/cgi-bin/ljemailgateway.pl	2009-01-26 11:07:15 UTC (rev 14805)
+++ trunk/cgi-bin/ljemailgateway.pl	2009-01-26 16:03:16 UTC (rev 14806)
@@ -192,7 +192,7 @@
     # Currently, PictureMail can only contain one image per message
     # and the image is always a jpeg. (2/2/05)
     if ($return_path =~ /(?:messaging|pm)\.sprint(?:pcs)?\.com/ &&
-        $content_type =~ m#^multipart/alternative#i) {
+        $head->get('Content-type:') =~ m#^multipart/alternative#i) {
 
         $tent = get_entity( $entity, 'html' );
 
@@ -217,7 +217,7 @@
 
         my $url =
           HTML::Entities::decode_entities(
-            $xml->{messageContents}->{mediaItems}->{mediaItem}->{url} );
+            $xml->{messageContents}->{mediaItems}->{mediaItem}->{content} );
         $url = LJ::trim($url);
         $url =~ s#</?url>##g;
 

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 

  • 3 comments