* some email programs (e.g. outlook in html mode) put 'normal'
authorDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Mon, 10 Dec 2007 16:55:09 +0000 (16:55 +0000)
committerDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Mon, 10 Dec 2007 16:55:09 +0000 (16:55 +0000)
  http://foo.bar/image.jpg links in the html, and then attach
  the image, with Content-Location set to http://foo.bar/image.jpg,
  but the content embedded.

this fix makes sure we will find & show those images

pmo-trunk-r3895

src/widgets/modest-gtkhtml-msg-view.c

index bb8e8a6..38e37be 100644 (file)
@@ -1395,11 +1395,8 @@ on_fetch_url (GtkWidget *widget, const gchar *uri,
         */
        if (g_str_has_prefix (uri, "cid:"))  
                my_uri = uri + 4;  /* +4 ==> skip "cid:" */
         */
        if (g_str_has_prefix (uri, "cid:"))  
                my_uri = uri + 4;  /* +4 ==> skip "cid:" */
-       else if (g_strstr_len (uri, strlen(uri), ":") == NULL)
-               my_uri = uri;      /* for outlook, no cid:, we check for ':',
-                                   * so external locations are excluded */
        else
        else
-               return FALSE; /* we don't support non-embedded images */
+               my_uri = uri;
        
        /* now try to find the embedded image */
        part = find_cid_image (priv->msg, my_uri);
        
        /* now try to find the embedded image */
        part = find_cid_image (priv->msg, my_uri);