diff options
author | Milan Crha <mcrha@redhat.com> | 2011-08-09 16:32:36 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2011-08-09 16:32:36 +0800 |
commit | 33be6d5da315a0abfd3fb4f74dccc9cc4a249f5e (patch) | |
tree | 202750515293b2c08c08f08b6d8ba257abd9a1e2 /mail/em-format-html.c | |
parent | 0d4cdfbc9cd14569a3d4c8b75e54e74acca04033 (diff) | |
download | gsoc2013-evolution-33be6d5da315a0abfd3fb4f74dccc9cc4a249f5e.tar.gz gsoc2013-evolution-33be6d5da315a0abfd3fb4f74dccc9cc4a249f5e.tar.zst gsoc2013-evolution-33be6d5da315a0abfd3fb4f74dccc9cc4a249f5e.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.c | 13 |
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); +} |