aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-format.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2003-11-13 11:57:54 +0800
committerMichael Zucci <zucchi@src.gnome.org>2003-11-13 11:57:54 +0800
commit8e302d84a481b9788ca071f824af598176e78df8 (patch)
treea527579a23ea5bec3179d82757472962010c2e52 /mail/em-format.c
parent61b1ec94bae6c13d7d1f6dade48a51bfc40f04ef (diff)
downloadgsoc2013-evolution-8e302d84a481b9788ca071f824af598176e78df8.tar
gsoc2013-evolution-8e302d84a481b9788ca071f824af598176e78df8.tar.gz
gsoc2013-evolution-8e302d84a481b9788ca071f824af598176e78df8.tar.bz2
gsoc2013-evolution-8e302d84a481b9788ca071f824af598176e78df8.tar.lz
gsoc2013-evolution-8e302d84a481b9788ca071f824af598176e78df8.tar.xz
gsoc2013-evolution-8e302d84a481b9788ca071f824af598176e78df8.tar.zst
gsoc2013-evolution-8e302d84a481b9788ca071f824af598176e78df8.zip
implement the key selector popup using e-cert-selector.
2003-11-12 Not Zed <NotZed@Ximian.com> * mail-account-gui.c (smime_sign_key_select) (smime_encrypt_key_select, smime_encrypt_key_selected) (smime_sign_key_selected): implement the key selector popup using e-cert-selector. 2003-11-11 Not Zed <NotZed@Ximian.com> * em-format-html.c (efh_application_xpkcs7mime): output icons of the status. (em_format_html_add_pobject): Changed to take a size specificier, return the pobject, and re-ordered args to be more consistent with puri stuff. (em_format_html_remove_pobject): handle the free callback if set. * em-format.c (emf_application_xpkcs7mime): moved this to em-format-html since it needs to do icon stuff. svn path=/trunk/; revision=23312
Diffstat (limited to 'mail/em-format.c')
-rw-r--r--mail/em-format.c62
1 files changed, 0 insertions, 62 deletions
diff --git a/mail/em-format.c b/mail/em-format.c
index d2333de83e..b5f24716d9 100644
--- a/mail/em-format.c
+++ b/mail/em-format.c
@@ -1235,65 +1235,6 @@ emf_message_rfc822(EMFormat *emf, CamelStream *stream, CamelMimePart *part, cons
em_format_format_message(emf, stream, (CamelMedium *)dw);
}
-static void
-emf_application_xpkcs7mime(EMFormat *emf, CamelStream *stream, CamelMimePart *part, const EMFormatHandler *info)
-{
- CamelCipherContext *context;
- CamelException *ex;
- extern CamelSession *session;
- CamelMimePart *opart;
- CamelCipherValidity *valid;
-
- ex = camel_exception_new();
-
- context = camel_smime_context_new(session);
-
- opart = camel_mime_part_new();
- valid = camel_cipher_decrypt(context, part, opart, ex);
- if (valid == NULL) {
- em_format_format_error(emf, stream, ex->desc?ex->desc:_("Could not parse S/MIME message: Unknown error"));
- em_format_part_as(emf, stream, part, NULL);
- } else {
- switch (valid->encrypt.status) {
- case CAMEL_CIPHER_VALIDITY_ENCRYPT_NONE:
- em_format_format_error(emf, stream, "No encryption?");
- break;
- case CAMEL_CIPHER_VALIDITY_ENCRYPT_WEAK:
- case CAMEL_CIPHER_VALIDITY_ENCRYPT_ENCRYPTED:
- case CAMEL_CIPHER_VALIDITY_ENCRYPT_STRONG:
- em_format_format_error(emf, stream, valid->encrypt.description);
- break;
- }
-
- em_format_part(emf, stream, opart);
-
- /* TODO: this is temporary */
- switch (valid->sign.status) {
- case CAMEL_CIPHER_VALIDITY_SIGN_NONE:
- em_format_format_error(emf, stream, "No signature?");
- break;
- case CAMEL_CIPHER_VALIDITY_SIGN_GOOD:
- em_format_format_error(emf, stream, "Good signature");
- em_format_format_error(emf, stream, valid->sign.description);
- break;
- case CAMEL_CIPHER_VALIDITY_SIGN_BAD:
- em_format_format_error(emf, stream, "Bad signature");
- em_format_format_error(emf, stream, valid->sign.description);
- break;
- case CAMEL_CIPHER_VALIDITY_SIGN_UNKNOWN:
- em_format_format_error(emf, stream, "Unknown signature");
- em_format_format_error(emf, stream, valid->sign.description);
- break;
- }
-
- camel_cipher_validity_free(valid);
- }
-
- camel_object_unref(opart);
- camel_object_unref(context);
- camel_exception_free(ex);
-}
-
static EMFormatHandler type_builtin_table[] = {
{ "multipart/alternative", emf_multipart_alternative },
{ "multipart/appledouble", emf_multipart_appledouble },
@@ -1305,9 +1246,6 @@ static EMFormatHandler type_builtin_table[] = {
{ "message/rfc822", emf_message_rfc822 },
{ "message/news", emf_message_rfc822 },
{ "message/*", emf_message_rfc822 },
-
- /* TODO: This should be done via a plugin? */
- { "application/x-pkcs7-mime",(EMFormatFunc)emf_application_xpkcs7mime },
};
static void