From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79743 Path: news.gmane.org!not-for-mail From: XeCycle Newsgroups: gmane.emacs.gnus.general Subject: Re: Inconsistency between `mml2015-use' and `mml2015-verify-function' Date: Fri, 26 Aug 2011 09:42:08 +0800 Message-ID: <87ei09hrtb.fsf@gmail.com> References: <87ipplwt9l.fsf@gmail.com> <87bovd5ift.fsf-ueno@unixuser.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: dough.gmane.org 1314323006 8443 80.91.229.12 (26 Aug 2011 01:43:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 26 Aug 2011 01:43:26 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M28037@lists.math.uh.edu Fri Aug 26 03:43:22 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QwlS5-0003kP-P8 for ding-account@gmane.org; Fri, 26 Aug 2011 03:43:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1QwlRS-0008AH-3e; Thu, 25 Aug 2011 20:42:42 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1QwlRQ-0008A7-8r for ding@lists.math.uh.edu; Thu, 25 Aug 2011 20:42:40 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1QwlRO-00043c-CB for ding@lists.math.uh.edu; Thu, 25 Aug 2011 20:42:39 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QwlRL-0000vG-1B for ding@gnus.org; Fri, 26 Aug 2011 03:42:35 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QwlRI-0003TT-Vv for ding@gnus.org; Fri, 26 Aug 2011 03:42:33 +0200 Original-Received: from 59.78.37.25 ([59.78.37.25]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Aug 2011 03:42:32 +0200 Original-Received: from xecycle by 59.78.37.25 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Aug 2011 03:42:32 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 166 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 59.78.37.25 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:hngwVsC9AEk4afXIBzSmjtnW8J8= X-Spam-Score: -1.6 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79743 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Daiki Ueno writes: > XeCycle writes: > >> I have these lines in my ~/.gnus.el for OpenPGP signature verifying, >> however, it doesn't work. [...] > Well, how does it not work? I have the following settings in addition: > > ~/.gnus: > > (setq gnus-buttonized-mime-types '("multipart/signed") > mm-verify-option 'always) > > ~/.gnupg/gpg.conf: > > keyserver-options auto-key-retrieve > keyserver hkp://keys.gnupg.net > > and it successfully verifies your signature. Indeed I have more: (require 'epa) (setq mml2015-use 'epg) (setq epg-debug t) ;; (require 'pgg) ;; (setq mml2015-use 'pgg) (setq mm-verify-option 'known mm-decrypt-option 'known gnus-treat-x-pgp-sig t gnus-buttonized-mime-types '("multipart/alternative" "multipart/encrypted" "multipart/signed")) With PGG, it worked fine. However it'll inform me of PGG being deprecated in favour of EasyPG, but EasyPG doesn't work for me. > You could try (setq epg-debug t) and inspect " *epg-debug*" buffer (note > the first letter is a space), if the problem seems to be in EPG itself. I did, but it seems useless. This is the debug trace when I try to display a signed message: > Debugger entered--Lisp error: (wrong-number-of-arguments #[(target old ne= w) "\303=09 > #\207" [old new target replace-regexp-in-string] 4] 4) > mm-replace-in-string("\ntest encrypt.\n" "\n" "\n" t) > byte-code("\306\307\211\211\211\211=19=1B=1D\310=1D\311\312\313=1D@#\20= 6=00\314\306#\211\203.\315=1EA\314\307\306$\211\204R=0E=1F\316\317 !\211=1E= \205J\320\312=1E@G! =1E@%+\210\321\322=1E\"\210\323 \324\325\306$\326!\327= \322\330\331\217\210=1F\316\332\333\f\334\"! !\211=1E\205\206\320\312=1E@G= ! =1E@%+\210=1E.\207" [signature part signature-file plain context inhibit-= redisplay t nil mm-find-raw-part-by-type get-text-property 0 protocol "appl= ication/pgp-signature" mm-find-part-by-type gnus-info "Corrupted" put-text-= property throw error mm-replace-in-string "\n" "\n" mm-get-part epg-make-co= ntext (byte-code "\304 \n#\304\207" [context signature part plain epg-veri= fy-string] 4) ((error (byte-code "\305\306=1A\211\205=00\307\310=0B@G\n = =0B@%+\210\f@\311=3D\2036\312\313=1A\211\2051\307\310=0B@G\n =0B@%+\210\20= 2N\312\314\f!=1A\211\205L\307\310=0B@G\n =0B@%+\210\315\304=0B\"\207" [mm-= security-handle value parameter handle error gnus-info "Failed" put-text-pr= operty 0 quit gnus-details "Quit." mml2015-format-error throw] 7))) epg-ver= ify-result-to-string epg-context-result-for verify ctl handle mm-security-h= andle value parameter] 7) > mml2015-epg-verify(((#> ("text/plain") nil nil nil nil = nil nil) (#> ("application/pgp-signature") nil nil nil nil = nil nil)) (#("multipart/signed" 0 16 (protocol "application/pgp-signature" = micalg "pgp-sha1" boundary "=3D-=3D-=3D" buffer #> from "xe= cycle@gmail.com" start nil)) (protocol . "application/pgp-signature") (mica= lg . "pgp-sha1") (boundary . "=3D-=3D-=3D"))) > mml2015-verify(((#> ("text/plain") nil nil nil nil nil = nil) (#> ("application/pgp-signature") nil nil nil nil nil = nil)) (#("multipart/signed" 0 16 (protocol "application/pgp-signature" mica= lg "pgp-sha1" boundary "=3D-=3D-=3D" buffer #> from "xecycl= e@gmail.com" start nil)) (protocol . "application/pgp-signature") (micalg .= "pgp-sha1") (boundary . "=3D-=3D-=3D"))) > mm-possibly-verify-or-decrypt(((#> ("text/plain") nil n= il nil nil nil nil) (#> ("application/pgp-signature") nil n= il nil nil nil nil)) (#("multipart/signed" 0 16 (protocol "application/pgp-= signature" micalg "pgp-sha1" boundary "=3D-=3D-=3D" buffer #> from "xecycle@gmail.com" start nil)) (protocol . "application/pgp-signat= ure") (micalg . "pgp-sha1") (boundary . "=3D-=3D-=3D")) "xecycle@gmail.com") > mm-dissect-multipart((#("multipart/signed" 0 16 (protocol "application/= pgp-signature" micalg "pgp-sha1" boundary "=3D-=3D-=3D" buffer #> from "xecycle@gmail.com" start nil)) (protocol . "application/pgp-si= gnature") (micalg . "pgp-sha1") (boundary . "=3D-=3D-=3D")) "xecycle@gmail.= com") > mm-dissect-buffer(nil t) > gnus-display-mime() > gnus-article-prepare-display() > gnus-article-prepare(15 nil) > gnus-summary-display-article(15 nil) > gnus-summary-select-article(nil nil pseudo) > gnus-summary-scroll-up(1) > call-interactively(gnus-summary-scroll-up nil nil) and this is the *epg-debug*: > /usr/bin/gpg --no-tty --status-fd 1 --yes --command-fd 0 --armor --textmo= de --output /tmp/epg-output1142m3f --detach-sign > [GNUPG:] USERID_HINT 8D718EC47795E591 Carl Lei (XeCycle) > [GNUPG:] NEED_PASSPHRASE 8D718EC47795E591 8D718EC47795E591 1 0 > [GNUPG:] GET_HIDDEN passphrase.enter > [GNUPG:] GOT_IT > [GNUPG:] GOOD_PASSPHRASE > [GNUPG:] BEGIN_SIGNING > [GNUPG:] SIG_CREATED D 1 2 01 1314321893 1FB67F1FD45DF681C84527F78D718EC4= 7795E591 > /usr/bin/gpg --no-tty --status-fd 1 --yes --command-fd 0 --armor --textmo= de --output /tmp/epg-output1142zBm --detach-sign > [GNUPG:] USERID_HINT 8D718EC47795E591 Carl Lei (XeCycle) > [GNUPG:] NEED_PASSPHRASE 8D718EC47795E591 8D718EC47795E591 1 0 > [GNUPG:] GET_HIDDEN passphrase.enter > [GNUPG:] GOT_IT > [GNUPG:] GOOD_PASSPHRASE > [GNUPG:] BEGIN_SIGNING > [GNUPG:] SIG_CREATED D 1 2 01 1314321902 1FB67F1FD45DF681C84527F78D718EC4= 7795E591 Seems gpg hadn't even been invoked for verifying signatures. This is really a painful problem for me... I just installed Emacs from git several weeks ago --- emacs-version "24.0.50.1". >> I checked variable `mml2015-use' and it's `epg', however the variable >> `mml2015-verify-function' is `mailcrypt-verify'. >> >> Well, this problem have been bothering me for a long time, I guess it's >> a configuration issue? Do I need to change the variable myself? I >> believe it isn't wanted. > > This shouldn't be a problem since the variable is only referred to from > `mml2015-mailcrypt-verify', which wouldn't be called when mml2015-use is > 'epg. I agree that the variable name is a bit misleading though. Thank you, so this may not be the major problem. =2D-=20 Carl Lei (XeCycle) Department of Physics, Shanghai Jiao Tong University OpenPGP public key: 7795E591 Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAEBAgAGBQJOVvnwAAoJEI1xjsR3leWReZEH/iXuLxxVXj1Cuuj1+e/o+SWs stIHtRlEN0FuGWvnDLzbMPVDuwM43rcZMdK/BpR0wHOdNAREqPB/osKLwQHjFf3I 1Xr/cWlePYucBUNEaBJtq9H75X9HGGZmzQUpSUrJ5vv3r1nEVbUEQN9lj/wARoiY rxEbnaUW6B6qduSX09Sc8Tc1FQx1bvCHc7V4OLTeUQOTTH+QkZbivNHi2u8N6FQJ QVKcGCTeKHi/0sM/5qu8UdgGk9guLV9OR88oYh8OzJZCsM72KZYdpy5AqbnPIbEF pfhpedsRsFQUf58TiW9ehqLjxEz01ZzU3sYDAVwIIkYwyt7lv0UuxuP1IipBoSc= =c0B6 -----END PGP SIGNATURE----- --=-=-=--