From c762fa37c35ff135322e0903a51ffd43d0f6856c Mon Sep 17 00:00:00 2001 From: Not Zed Date: Wed, 22 Sep 2004 01:32:18 +0000 Subject: ** See bug #65058. 2004-09-03 Not Zed ** See bug #65058. * em-format-html.c (efh_image): use the content-id rather than the uri for tracking our image reference. Makes more sense anyway, its guaranteed unique. svn path=/trunk/; revision=27328 --- mail/ChangeLog | 8 ++++++++ mail/em-format-html-display.c | 2 +- mail/em-format-html.c | 8 +++----- 3 files changed, 12 insertions(+), 6 deletions(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index c2b24be771..74edc6e7e8 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,11 @@ +2004-09-03 Not Zed + + ** See bug #65058. + + * em-format-html.c (efh_image): use the content-id rather than + the uri for tracking our image reference. Makes more + sense anyway, its guaranteed unique. + 2004-09-21 David Malcolm * em-folder-tree-model.c (em_folder_tree_model_set_selected): Fix diff --git a/mail/em-format-html-display.c b/mail/em-format-html-display.c index e73c4af6f2..58037057a4 100644 --- a/mail/em-format-html-display.c +++ b/mail/em-format-html-display.c @@ -954,7 +954,7 @@ efhd_write_image(EMFormat *emf, CamelStream *stream, EMFormatPURI *puri) CamelDataWrapper *dw = camel_medium_get_content_object((CamelMedium *)puri->part); /* TODO: identical to efh_write_image */ - d(printf("writing image '%s'\n", puri->uri?puri->uri:puri->cid)); + d(printf("writing image '%s'\n", puri->cid)); camel_data_wrapper_decode_to_stream(dw, stream); camel_stream_close(stream); } diff --git a/mail/em-format-html.c b/mail/em-format-html.c index 6d72ce3f1e..7c362c5f4c 100644 --- a/mail/em-format-html.c +++ b/mail/em-format-html.c @@ -1085,7 +1085,7 @@ efh_write_image(EMFormat *emf, CamelStream *stream, EMFormatPURI *puri) { CamelDataWrapper *dw = camel_medium_get_content_object((CamelMedium *)puri->part); - d(printf("writing image '%s'\n", puri->uri?puri->uri:puri->cid)); + d(printf("writing image '%s'\n", puri->cid)); camel_data_wrapper_decode_to_stream(dw, stream); camel_stream_close(stream); } @@ -1094,12 +1094,10 @@ static void efh_image(EMFormatHTML *efh, CamelStream *stream, CamelMimePart *part, EMFormatHandler *info) { EMFormatPURI *puri; - const char *location; puri = em_format_add_puri((EMFormat *)efh, sizeof(EMFormatPURI), NULL, part, efh_write_image); - location = puri->uri?puri->uri:puri->cid; - d(printf("adding image '%s'\n", location)); - camel_stream_printf(stream, "", location); + d(printf("adding image '%s'\n", puri->cid)); + camel_stream_printf(stream, "", puri->cid); } static EMFormatHandler type_builtin_table[] = { -- cgit