From: Dirk-Jan C. Binnema Date: Mon, 10 Dec 2007 16:55:09 +0000 (+0000) Subject: * some email programs (e.g. outlook in html mode) put 'normal' X-Git-Tag: git_migration_finished~1943 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=68d53b38cbfe8edb6a187c1ff6adefcda621fef0 * some email programs (e.g. outlook in html mode) put 'normal' 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 --- diff --git a/src/widgets/modest-gtkhtml-msg-view.c b/src/widgets/modest-gtkhtml-msg-view.c index bb8e8a6..38e37be 100644 --- a/src/widgets/modest-gtkhtml-msg-view.c +++ b/src/widgets/modest-gtkhtml-msg-view.c @@ -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:" */ - 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 - 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);