[evolution/webkit: 57/123] Ignore application/pgp-signature part



commit c78be661126035ef6720d7811d926ad5d0b91ce2
Author: Dan VrÃtil <dvratil redhat com>
Date:   Thu Nov 24 16:48:47 2011 +0100

    Ignore application/pgp-signature part
    
    We don't want this part inline or displayed as an attachment. It's used only
    internally to verify the signature, but user does not have to be aware of it.

 em-format/em-format.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/em-format/em-format.c b/em-format/em-format.c
index a2398ea..4a2a4e7 100644
--- a/em-format/em-format.c
+++ b/em-format/em-format.c
@@ -1244,6 +1244,9 @@ static EMFormatHandler type_handlers[] = {
 		{ (gchar *) "multipart/digest", emf_parse_multipart_digest, },
 		{ (gchar *) "multipart/*", emf_parse_multipart_mixed, },
 
+		/* Ignore PGP signature part */
+		{ (gchar *) "application/pgp-signature", em_format_empty_parser, },
+
 		/* Insert brokenly-named parts here */
 #ifdef ENABLE_SMIME
 		{ (gchar *) "application/pkcs7-mime", emf_parse_application_xpkcs7mime, 0, EM_FORMAT_HANDLER_INLINE_DISPOSITION },



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]