From ce15b4480fcf7cb0cb2b7d8257d4d548ab5fdbe2 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 23 Jan 2001 02:33:32 +0000 Subject: Just wrote a temp way of reporting success/fail of PGP/MIME signature 2001-01-22 Jeffrey Stedfast * mail-format.c (handle_multipart_signed): Just wrote a temp way of reporting success/fail of PGP/MIME signature verification status. svn path=/trunk/; revision=7735 --- mail/ChangeLog | 6 ++++++ mail/mail-format.c | 20 ++++++++++++-------- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index b1b014582d..679600812f 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2001-01-22 Jeffrey Stedfast + + * mail-format.c (handle_multipart_signed): Just wrote a temp way + of reporting success/fail of PGP/MIME signature verification + status. + 2001-01-22 Iain Holmes * evolution-outlook-importer.c: Outlook Express 4 .mbx importer. diff --git a/mail/mail-format.c b/mail/mail-format.c index d058ec258f..610bf27b68 100644 --- a/mail/mail-format.c +++ b/mail/mail-format.c @@ -1253,26 +1253,30 @@ handle_multipart_signed (CamelMimePart *part, const char *mime_type, } /* Now display the "seal-of-authenticity" or something... */ -#if 0 if (valid) { + /* FIXME: maybe the pgp verify func should ALWAYS set + an exception so that we can get more details even + if it did pass the check. */ mail_html_write (md->html, md->stream, - "" + "
\n
" "" - "
%s

", + "%s

", get_url_for_icon ("wax-seal2.png", md), _("This message is digitally signed and " "has been found to be authentic.")); } else { mail_html_write (md->html, md->stream, - "" - "
", - get_url_for_icon ("wax-seal-broken.png", md)); + "
\n" + "" + "
%s

", + get_url_for_icon ("wax-seal-broken.png", md), + _("This message is digitally signed but can " + "not be proven to be authentic.")); mail_error_write (md->html, md->stream, camel_exception_get_description (ex)); mail_html_write (md->html, md->stream, - "

"); + "

"); } -#endif camel_exception_free (ex); return TRUE; -- cgit