From 13651b3d19f142162f310a7e3aead064ef765dd7 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Thu, 15 Oct 2009 14:25:38 +0200 Subject: Bug #314333 - Decrypt body in reply to an inline-PGP encrypted mail --- mail/em-utils.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'mail/em-utils.c') diff --git a/mail/em-utils.c b/mail/em-utils.c index 5cd024bec7..79b11bc031 100644 --- a/mail/em-utils.c +++ b/mail/em-utils.c @@ -1509,6 +1509,9 @@ em_utils_get_proxy_uri (const gchar *pUri) * @len: * @source: * @append: Text to append, can be NULL. + * @validity_found: if not NULL, then here will be set what validities + * had been found during message conversion. Value is a bit OR + * of EM_FORMAT_VALIDITY_FOUND_* constants. * * Convert a message to html, quoting if the @credits attribution * string is given. @@ -1516,7 +1519,7 @@ em_utils_get_proxy_uri (const gchar *pUri) * Return value: The html version. **/ gchar * -em_utils_message_to_html(CamelMimeMessage *message, const gchar *credits, guint32 flags, gssize *len, EMFormat *source, const gchar *append) +em_utils_message_to_html (CamelMimeMessage *message, const gchar *credits, guint32 flags, gssize *len, EMFormat *source, const gchar *append, guint32 *validity_found) { EMFormatQuote *emfq; CamelStreamMem *mem; @@ -1543,6 +1546,8 @@ em_utils_message_to_html(CamelMimeMessage *message, const gchar *credits, guint3 } em_format_format_clone((EMFormat *)emfq, NULL, NULL, message, source); + if (validity_found) + *validity_found = ((EMFormat *)emfq)->validity_found; g_object_unref (emfq); if (append && *append) -- cgit v1.2.3