aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-utils.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-10-15 20:25:38 +0800
committerMilan Crha <mcrha@redhat.com>2009-10-15 20:25:38 +0800
commit13651b3d19f142162f310a7e3aead064ef765dd7 (patch)
treea9071894b14a915c2c4433f60a405030b87ac1d9 /mail/em-utils.c
parent6c9d435e6724214031085b34a5f562e51950baad (diff)
downloadgsoc2013-evolution-13651b3d19f142162f310a7e3aead064ef765dd7.tar
gsoc2013-evolution-13651b3d19f142162f310a7e3aead064ef765dd7.tar.gz
gsoc2013-evolution-13651b3d19f142162f310a7e3aead064ef765dd7.tar.bz2
gsoc2013-evolution-13651b3d19f142162f310a7e3aead064ef765dd7.tar.lz
gsoc2013-evolution-13651b3d19f142162f310a7e3aead064ef765dd7.tar.xz
gsoc2013-evolution-13651b3d19f142162f310a7e3aead064ef765dd7.tar.zst
gsoc2013-evolution-13651b3d19f142162f310a7e3aead064ef765dd7.zip
Bug #314333 - Decrypt body in reply to an inline-PGP encrypted mail
Diffstat (limited to 'mail/em-utils.c')
-rw-r--r--mail/em-utils.c7
1 files changed, 6 insertions, 1 deletions
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)