emacs-devel
[Top][All Lists]
Advanced

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

Re: Gnus + GPG integration broken after revision 102412.


From: Ashish SHUKLA
Subject: Re: Gnus + GPG integration broken after revision 102412.
Date: Wed, 22 Dec 2010 12:26:30 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-unknown-linux-gnu)

Daiki Ueno writes:
> address@hidden (Ashish SHUKLA) writes:

>>> It looks strange that mml2015 passes the expired key to gpg, since
>>> `mml2015-epg-sign' is expected to reject such a key through
>>> `mml2015-epg-find-usable-key'.
>> 
>>> Do you see 1F2F8410762E5E74 key with:
>> 
>>> (mml2015-epg-find-usable-key
>>> (epg-list-keys (epg-make-context 'OpenPGP) "1F2F8410762E5E74" t)
>>> 'sign)
>> 
>> Yes, I see that key. And, please note that it's not expired, it's revoked.

> Aha, then it's indeed a bug of mml2015-epg-*.  Please try the attached
> patch.

> === modified file 'lisp/gnus/mml2015.el'
> --- lisp/gnus/mml2015.el      2010-11-17 22:15:24 +0000
> +++ lisp/gnus/mml2015.el      2010-12-22 05:16:41 +0000
> @@ -957,7 +957,7 @@
>                          (mapcar
>                           (lambda (signer)
>                             (setq signer-key (mml2015-epg-find-usable-key
> -                                             (epg-list-keys context signer t)
> +                                             (epg-list-keys context signer)
>                                               'sign))
>                             (unless (or signer-key
>                                         (y-or-n-p
> @@ -1068,7 +1068,7 @@
>                            (mapcar
>                             (lambda (signer)
>                               (setq signer-key (mml2015-epg-find-usable-key
> -                                               (epg-list-keys context signer 
> t)
> +                                               (epg-list-keys context signer)
>                                                 'sign))
>                               (unless (or signer-key
>                                           (y-or-n-p


> Since I'm personally not confident if the fix is the right way, the
> actual fix will be done after asking the gpg list.

Works great. I'm able to send signed/encrypted mails using patched functions. :)

Thanks
-- 
Ashish SHUKLA

“The camera is to the brush what Java is to assembly.” ("Sougata
Santra", ".sig of Sir Debarshi Ray", 2010)

Attachment: pgpgQvSEpKSjU.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]