aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-format.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2003-12-10 14:13:31 +0800
committerMichael Zucci <zucchi@src.gnome.org>2003-12-10 14:13:31 +0800
commitd7fbe9fe14e5eeea5b816a938616d8f2f4497560 (patch)
treeb060b50467a71cb68a58291784ec0415c7e94c9d /mail/em-format.c
parent8a2183ab51970f0ffdecee7e3be7317082abd470 (diff)
downloadgsoc2013-evolution-d7fbe9fe14e5eeea5b816a938616d8f2f4497560.tar.gz
gsoc2013-evolution-d7fbe9fe14e5eeea5b816a938616d8f2f4497560.tar.zst
gsoc2013-evolution-d7fbe9fe14e5eeea5b816a938616d8f2f4497560.zip
treat application/pkcs7-signature as application/x-pkcs-signature. Stupud
2003-12-10 Not Zed <NotZed@Ximian.com> * em-format-html-display.c (efhd_multipart_signed): * em-format-html.c (efh_multipart_signed): * em-format.c (emf_multipart_signed): treat application/pkcs7-signature as application/x-pkcs-signature. Stupud non-rfc-compliant mailers from apple. Bug #51750. svn path=/trunk/; revision=23907
Diffstat (limited to 'mail/em-format.c')
-rw-r--r--mail/em-format.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mail/em-format.c b/mail/em-format.c
index 2642b5becd..29e55d3cc5 100644
--- a/mail/em-format.c
+++ b/mail/em-format.c
@@ -1187,7 +1187,8 @@ emf_multipart_signed(EMFormat *emf, CamelStream *stream, CamelMimePart *part, co
CamelCipherContext *cipher = NULL;
/* FIXME: Should be done via a plugin interface */
- if (g_ascii_strcasecmp("application/x-pkcs7-signature", mps->protocol) == 0)
+ if (g_ascii_strcasecmp("application/x-pkcs7-signature", mps->protocol) == 0
+ || g_ascii_strcasecmp("application/pkcs7-signature", mps->protocol) == 0)
cipher = camel_smime_context_new(emf->session);
else if (g_ascii_strcasecmp("application/pgp-signature", mps->protocol) == 0)
cipher = camel_gpg_context_new(emf->session);