- if (g_str_has_prefix (uri, "cid:")) {
- /* +4 ==> skip "cid:" */
- TnyMimePart *part = find_cid_image (priv->msg, uri + 4);
- if (!part) {
- g_printerr ("modest: '%s' not found\n", uri + 4);
- result = FALSE;
- } else {
- tny_mime_part_decode_to_stream ((TnyMimePart*)part,
- stream);
- g_object_unref (G_OBJECT(part));
- result = TRUE;
- }
- } else {
- return TRUE;
+ /* now try to find the embedded image */
+ part = find_cid_image (priv->msg, my_uri);
+ if (!part) {
+ g_printerr ("modest: %s: '%s' not found\n", __FUNCTION__, my_uri);
+ return FALSE;