aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-format-html.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-08-09 16:32:36 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-09-14 20:08:45 +0800
commit76c9cdbb12e6124244cece81c3738c2e8192aa2a (patch)
tree16ca0b31f7492c81657794621608b42cd227356a /mail/em-format-html.c
parent49b8e1c52398f2017c4ebf878344dc41b3981158 (diff)
downloadgsoc2013-evolution-76c9cdbb12e6124244cece81c3738c2e8192aa2a.tar
gsoc2013-evolution-76c9cdbb12e6124244cece81c3738c2e8192aa2a.tar.gz
gsoc2013-evolution-76c9cdbb12e6124244cece81c3738c2e8192aa2a.tar.bz2
gsoc2013-evolution-76c9cdbb12e6124244cece81c3738c2e8192aa2a.tar.lz
gsoc2013-evolution-76c9cdbb12e6124244cece81c3738c2e8192aa2a.tar.xz
gsoc2013-evolution-76c9cdbb12e6124244cece81c3738c2e8192aa2a.tar.zst
gsoc2013-evolution-76c9cdbb12e6124244cece81c3738c2e8192aa2a.zip
Bug #655669 - Can't save inline pictures embedded in HTML Mails
Diffstat (limited to 'mail/em-format-html.c')
-rw-r--r--mail/em-format-html.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/mail/em-format-html.c b/mail/em-format-html.c
index d79fa450bc..745c275d8b 100644
--- a/mail/em-format-html.c
+++ b/mail/em-format-html.c
@@ -3328,3 +3328,16 @@ em_format_html_format_cert_infos (CamelCipherCertInfo *first_cinfo)
return g_string_free (res, FALSE);
}
+
+/* unref returned pointer with g_object_unref(), if not NULL */
+CamelStream *
+em_format_html_get_cached_image (EMFormatHTML *efh, const gchar *image_uri)
+{
+ g_return_val_if_fail (efh != NULL, NULL);
+ g_return_val_if_fail (image_uri != NULL, NULL);
+
+ if (!emfh_http_cache)
+ return NULL;
+
+ return camel_data_cache_get (emfh_http_cache, EMFH_HTTP_CACHE_PATH, image_uri, NULL);
+}