diff options
author | bertrand <bertrand@helixcode.com> | 2000-03-04 03:42:47 +0800 |
---|---|---|
committer | Bertrand Guiheneuf <bertrand@src.gnome.org> | 2000-03-04 03:42:47 +0800 |
commit | c343245386b1aaab492357963776fe82a5c80796 (patch) | |
tree | ea71e7ed6a5a299a7b48727b0b14493896e35b36 /camel/camel-formatter.c | |
parent | 1fdf94dc2046d9f382d84324dc8674e719c1a57e (diff) | |
download | gsoc2013-evolution-c343245386b1aaab492357963776fe82a5c80796.tar.gz gsoc2013-evolution-c343245386b1aaab492357963776fe82a5c80796.tar.zst gsoc2013-evolution-c343245386b1aaab492357963776fe82a5c80796.zip |
in the case of images, put the content object output stream in the url.
2000-03-03 bertrand <bertrand@helixcode.com>
* camel-formatter.c (handle_image): in the case
of images, put the content object output stream
in the url. This allows the message browser
to show inline images.
svn path=/trunk/; revision=2021
Diffstat (limited to 'camel/camel-formatter.c')
-rw-r--r-- | camel/camel-formatter.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/camel/camel-formatter.c b/camel/camel-formatter.c index 469a096689..1754d854fb 100644 --- a/camel/camel-formatter.c +++ b/camel/camel-formatter.c @@ -305,7 +305,7 @@ call_handler_function (CamelFormatter* formatter, */ if (mimetype_whole_in) { mimetype_whole = str_tolower (mimetype_whole_in); - + handler_function = g_hash_table_lookup ( mime_function_table, mimetype_whole); } @@ -719,12 +719,12 @@ handle_image (CamelFormatter *formatter, CamelDataWrapper *wrapper) uuid = lookup_unique_id (formatter->priv->current_root, wrapper); - tag = g_strdup_printf ("<img src=\"%s\">\n", uuid); + tag = g_strdup_printf ("<img src=\"camel://%s\">\n", uuid); camel_stream_write_string (formatter->priv->stream, tag); - + debug ("handle_image: tag=%s\n", tag); g_free (uuid); g_free (tag); - + debug ("handle_image: exiting\n"); } @@ -991,8 +991,8 @@ camel_formatter_class_init (CamelFormatterClass *camel_formatter_class) ADD_HANDLER ("multipart/related", handle_multipart_related); ADD_HANDLER ("multipart/mixed", handle_multipart_mixed); ADD_HANDLER ("message/rfc822", handle_mime_part); - ADD_HANDLER ("image/", handle_image); - ADD_HANDLER ("vcard/", handle_vcard); + ADD_HANDLER ("image", handle_image); + ADD_HANDLER ("vcard", handle_vcard); /* body parts don't have mime parts per se, so camel sticks on the following one */ |