aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-03-23 14:52:16 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-03-23 14:52:16 +0800
commita116729eb5f0c440b58d60c542502def00884441 (patch)
tree6adf7869829ae403bd2c33932de79e8e7eb9ae4b
parent6bb39b1f7d5f62675eb8ece5784f8e36edd339c5 (diff)
downloadgsoc2013-evolution-a116729eb5f0c440b58d60c542502def00884441.tar
gsoc2013-evolution-a116729eb5f0c440b58d60c542502def00884441.tar.gz
gsoc2013-evolution-a116729eb5f0c440b58d60c542502def00884441.tar.bz2
gsoc2013-evolution-a116729eb5f0c440b58d60c542502def00884441.tar.lz
gsoc2013-evolution-a116729eb5f0c440b58d60c542502def00884441.tar.xz
gsoc2013-evolution-a116729eb5f0c440b58d60c542502def00884441.tar.zst
gsoc2013-evolution-a116729eb5f0c440b58d60c542502def00884441.zip
format inline(d) parts automatically into the reply. Part of #55702.
2004-03-23 Not Zed <NotZed@Ximian.com> * em-format-quote.c (emfq_format_attachment): format inline(d) parts automatically into the reply. Part of #55702. svn path=/trunk/; revision=25152
-rw-r--r--mail/ChangeLog3
-rw-r--r--mail/em-format-quote.c18
2 files changed, 20 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index f679c1b92d..3455847b95 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,8 @@
2004-03-23 Not Zed <NotZed@Ximian.com>
+ * em-format-quote.c (emfq_format_attachment): format inline(d)
+ parts automatically into the reply. Part of #55702.
+
* em-utils.c (em_uri_from_camel): if we get an email uri passed in,
just pass it out again, without first going to camel to do it.
diff --git a/mail/em-format-quote.c b/mail/em-format-quote.c
index c0b7855f58..ede8f8e94a 100644
--- a/mail/em-format-quote.c
+++ b/mail/em-format-quote.c
@@ -393,7 +393,23 @@ emfq_format_source(EMFormat *emf, CamelStream *stream, CamelMimePart *part)
static void
emfq_format_attachment(EMFormat *emf, CamelStream *stream, CamelMimePart *part, const char *mime_type, const EMFormatHandler *handle)
{
- ;
+ if (handle && em_format_is_inline(emf, part, handle)) {
+ char *text, *html;
+
+ camel_stream_write_string(stream,
+ "<table border=1 cellspacing=0 cellpadding=0><tr><td><font size=-1>\n");
+
+ /* output some info about it */
+ text = em_format_describe_part(part, mime_type);
+ html = camel_text_to_html(text, ((EMFormatQuote *)emf)->text_html_flags & CAMEL_MIME_FILTER_TOHTML_CONVERT_URLS, 0);
+ camel_stream_write_string(stream, html);
+ g_free(html);
+ g_free(text);
+
+ camel_stream_write_string(stream, "</font></td></tr></table>");
+
+ handle->handler(emf, stream, part, handle);
+ }
}
#include <camel/camel-medium.h>