From: Sascha Wilde <wilde@sha-bang.de>
Cc: ding <ding@gnus.org>, emacs-devel@gnu.org
Subject: Re: Patch: Show signature state in encrypted messages using pgg
Date: Sat, 11 Nov 2006 22:48:35 +0100 [thread overview]
Message-ID: <m2d57tmz7w.fsf@kenny.sha-bang.de> (raw)
In-Reply-To: <df619717-2cd3-424c-80f5-0020aab24d81@well-done.deisui.org> (Daiki Ueno's message of "Sat\, 11 Nov 2006 11\:19\:48 +0900")
Daiki Ueno <ueno@unixuser.org> wrote:
>>>>>> In <m2mz6zlyr4.fsf@kenny.sha-bang.de>
>>>>>> Sascha Wilde <wilde@sha-bang.de> wrote:
>> [1 <text/plain (7bit)>]
>> Sascha Wilde <wilde@sha-bang.de> wrote:
>
>> > The attached patch extends the message a bit, so that it shows the
>> > signature verification result in addition. With it a encrypted but
>> > unsigned mail shows:
>> > [[[PGP Encrypted Part:OK, Signer: From unknown user]]
>
> Is there still any chance for such a feature enhancement to get into the
> release? Anyway,
No, I don't think so, but I think that:
1. There is a chance to get it into gnus CVS
2. It is a good idea to make it public available, not at least as a
reminder for after the release... ;-)
>> +2006-11-10 Sascha Wilde <wilde@sha-bang.de>
>> +
>> + * mml2015.el (mml2015-pgg-decrypt, mml2015-pgg-clear-decrypt):
>> + Show info on signature for decrypted parts.
>> +
>> + (mm-set-handle-multipart-parameter
>> + mm-security-handle 'gnus-info (concat "OK, Signer: " sig))))
>
> Did you really test it?
Yes, and I'm using a patched version for some days without problems,
but: beware I've only tested this code, not proven it right. ;-)
> mm-uu-pgp-encrypted-extract-1 checks the
> verification result stored in gnus-info
>
> (progn
> (mml2015-clean-buffer)
> (funcall (mml2015-clear-decrypt-function))
> (equal (mm-handle-multipart-ctl-parameter mm-security-handle
> 'gnus-info)
> "OK"))
Yes, this might be a problem indeed -- but as far as I can see from a
quick glance over the source mm-uu-pgp-encrypted-extract-1 is only
used for "application/x-gnus-pgp-encrypted" which seems quite non
standard and which I haven't knowingly encountered in real live --
which would explains why I haven't noticed the glitch in my patch...
Anyway how about something along the lines of
;;; untested:
(progn
(mml2015-clean-buffer)
(funcall (mml2015-clear-decrypt-function))
(eq t
(compare-strings "OK" nil nil
(mm-handle-multipart-ctl-parameter mm-security-handle
'gnus-info)
nil 2)))
this should fix it.
cheers
sascha
--
Sascha Wilde
Die Existenz von Spam heißt, daß ein Medium noch lebt.
Die Existenz von Pr0n heißt, daß es Zukunft hat.
-- Leitners Law (<40f7d168@fefe.de>, 16. Juli 2004)
next prev parent reply other threads:[~2006-11-11 21:48 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-10 22:30 Patch: Show signature state in encrypted messages using pgg Sascha Wilde
2006-11-10 22:31 ` Sascha Wilde
2006-11-11 2:19 ` Daiki Ueno
2006-11-11 21:48 ` Sascha Wilde [this message]
2006-11-12 0:28 ` Daiki Ueno
2006-11-12 11:05 ` Sascha Wilde
2006-11-12 11:09 ` David Kastrup
2006-11-12 11:47 ` Sascha Wilde
2006-11-12 12:31 ` Daiki Ueno
2006-11-12 14:22 ` Sascha Wilde
2006-11-12 14:42 ` Daiki Ueno
2006-11-12 15:01 ` Sascha Wilde
2006-11-12 13:26 ` Reiner Steib
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2d57tmz7w.fsf@kenny.sha-bang.de \
--to=wilde@sha-bang.de \
--cc=ding@gnus.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.