From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/46664 Path: main.gmane.org!not-for-mail From: Jack Twilley Newsgroups: gmane.emacs.gnus.general Subject: Re: gpg.el still not working Date: Mon, 23 Sep 2002 14:52:03 -0700 Sender: owner-ding@hpc.uh.edu Message-ID: <86bs6ope64.fsf@duchess.twilley.org> References: <86znu9v46q.fsf@duchess.twilley.org> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1032818210 26399 127.0.0.1 (23 Sep 2002 21:56:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 23 Sep 2002 21:56:50 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17tbCC-0006rQ-00 for ; Mon, 23 Sep 2002 23:56:48 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 17tb8J-0001hC-00; Mon, 23 Sep 2002 16:52:47 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 23 Sep 2002 16:53:26 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id QAA09154 for ; Mon, 23 Sep 2002 16:53:09 -0500 (CDT) Original-Received: (qmail 5711 invoked by alias); 23 Sep 2002 21:52:17 -0000 Original-Received: (qmail 5706 invoked from network); 23 Sep 2002 21:52:17 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by gnus.org with SMTP; 23 Sep 2002 21:52:17 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 17tboC-0003wq-00 for ; Tue, 24 Sep 2002 00:36:04 +0200 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 98 Original-NNTP-Posting-Host: dsl092-188-219.sfo1.dsl.speakeasy.net Original-X-Trace: quimby.gnus.org 1032820564 8709 66.92.188.219 (23 Sep 2002 22:36:04 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 23 Sep 2002 22:36:04 GMT X-Attribution: Jack X-PGP-Key: 0x007F7B38 X-PGP-Fingerprint: 5315 7434 6095 DF36 995B 3407 18F1 527C 007F 7B38 X-Face: .NHAX*9Wpk.L>*/dOY%Tx85BIb;aN`:H*I7y}qDK{(&Q(zjfnli]\}|xh+mpp22}~9u.T[[ zaK{BFgnXg'rBY+GiwLccR(O/iXq"_Fhrx0+%!1N}?D(mT{T$n_q}f`!f\(,@dR~*x&{_Zn^Qm)6rV ]E,6z3JLm6k<9>^9kg:#TU-S'a3{@c,rcT7YF`M*cCg_S0e1=C?!^kg-Wy]f+Xjpe#gB]>#xi= sa4'F#mX[QH^5}1B$0.s"6Y0R["ypG0mIe;8R6H_W]*_c:1|0Z^FgjUA?dCr`b[TX>>>> "Simon" =3D=3D Simon Josefsson writes: Simon> Jack Twilley writes: >> I'm still getting the following errors when attempting to validate >> signatures: >>=20 >> [[PGP Signed Part:Error.] (number-char-or-marker-p nil)] >>=20 >> I don't know why. I'm running current versions of all the related >> files as far as I know. Could someone please let me know how they >> have CVS Gnus working with gpg.el ? Simon> I remember seeing that message too, but can't recall when it Simon> happened. Do you have a ~/tmp/ directory with the correct Simon> permissions? Does C-: (setq debug-on-signal t) RET give more Simon> information? My temporary directory does have the proper permissions. I got a more useful traceback with that setting: Signaling: (wrong-type-argument number-char-or-marker-p nil) >(nil 0) (or (stringp res) (> res 0)) (if (or (stringp res) (> res 0)) (with-current-buffer result (insert ...)= nil) t) (let* ((msg-file ...) (cmd ...) (args ...) res) (with-temp-file msg-file = (buffer-disable-undo) (apply ... ...)) (setq res (apply ... ... ... cmd nil= result nil args)) (if (or ... ...) (with-current-buffer result ... nil) t)) (progn (gpg-with-temp-files-create 1) (let* (... ... ... res) (with-temp-= file msg-file ... ...) (setq res ...) (if ... ... t))) (unwind-protect (progn (gpg-with-temp-files-create 1) (let* ... ... ... .= ..)) (gpg-with-temp-files-delete)) (let ((gpg-temp-files)) (unwind-protect (progn ... ...) (gpg-with-temp-fi= les-delete))) (gpg-with-temp-files 1 (let* (... ... ... res) (with-temp-file msg-file .= .. ...) (setq res ...) (if ... ... t))) gpg-verify-cleartext(#"> #) byte-code("..." [mm-security-handle parameter value mml2015-result-buffer= handle gpg-verify-cleartext gnus-details buffer-string put-text-property 0= ] 8) mml2015-gpg-clear-verify() mm-uu-pgp-signed-extract-1(nil ("multipart/signed")) mm-uu-pgp-signed-extract() mm-uu-dissect() gnus-display-mime() gnus-article-prepare-display() gnus-article-prepare(42482 nil) gnus-summary-display-article(42482) gnus-summary-next-page(nil) call-interactively(gnus-summary-next-page) The variable named res isn't being set, and it's in a setq involving passphrases. I'll take a closer look. Simon> "grep -e pgp -e gpg -e mailcrypt -e mc .emacs" shows the Simon> following for me (I have both gpg.el and mailcrypt installed, Simon> and Gnus prefers gpg.el if it finds it, which it does): Those symbols are only found in my .gnus, not in my .xemacs/init.el: gnus-use-installed-mailcrypt nil gnus-use-mailcrypt nil (require 'gpg) (require 'bbdb-pgp) bbdb/pgp-default-action 'sign bbdb/pgp-ask nil ;(remove-hook 'message-send-hook 'bbdb/pgp-hook-fun) ;(add-hook 'message-send-mail-hook 'bbdb/pgp-hook-fun) ; (mml-secure-message-sign-pgpmime))))) ; (gnus-demon-scan-pgp 180 t) gnus-treat-strip-pgp 'last gpg-command-default-alist '((gpg . "gpg") (gpg-2comp . "pgpgpg")) gpg-passphrase-timeout 5 gpg-temp-directory "~/.gnupg/tmp" mml2015-use 'gpg The bare key-value pairs are part of large setq statements. My bbdb-pgp stuff takes care of signing, and it appears to work -- feel free to check the signature on any of my recent posts to make sure. Jack. =2D --=20 Jack Twilley jmt at twilley dot org http colon slash slash www dot twilley dot org slash tilde jmt slash =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9j40MGPFSfAB/ezgRAvIPAJ9QxwPfixdQXRZr069T2SPrhVVltwCg7Bch uGSA2uGl39qKDDiRhkmV2VA=3D =3DW+ns =2D----END PGP SIGNATURE-----