Gnus development mailing list
 help / color / mirror / Atom feed
* gpg.el still not working
@ 2002-09-23  2:18 Jack Twilley
  2002-09-23 10:31 ` Simon Josefsson
  0 siblings, 1 reply; 11+ messages in thread
From: Jack Twilley @ 2002-09-23  2:18 UTC (permalink / raw)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


I'm still getting the following errors when attempting to validate
signatures:

[[PGP Signed Part:Error.]
(number-char-or-marker-p nil)]

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 ?

Jack.
- -- 
Jack Twilley
jmt at twilley dot org
http colon slash slash www dot twilley dot org slash tilde jmt slash
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE9jnoWGPFSfAB/ezgRAp5DAKDFP0Pse5rGZtdIrbGBg3xy5UA/FQCgyZtV
3lXii867FJUZWA9zJhNRD9E=
=fzeH
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: gpg.el still not working
  2002-09-23  2:18 gpg.el still not working Jack Twilley
@ 2002-09-23 10:31 ` Simon Josefsson
  2002-09-23 12:45   ` Kai Großjohann
  2002-09-23 21:52   ` Jack Twilley
  0 siblings, 2 replies; 11+ messages in thread
From: Simon Josefsson @ 2002-09-23 10:31 UTC (permalink / raw)


Jack Twilley <jmt+usenet@twilley.org> writes:

> I'm still getting the following errors when attempting to validate
> signatures:
>
> [[PGP Signed Part:Error.]
> (number-char-or-marker-p nil)]
>
> 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 ?

I remember seeing that message too, but can't recall when it
happened. Do you have a ~/tmp/ directory with the correct permissions?
Does C-: (setq debug-on-signal t) RET give more information?

"grep -e pgp -e gpg -e mailcrypt -e mc .emacs" shows the following for
me (I have both gpg.el and mailcrypt installed, and Gnus prefers
gpg.el if it finds it, which it does):

(autoload 'mc-install-read-mode "mailcrypt")
(autoload 'mc-install-write-mode "mailcrypt")
 '(gnus-summary-mode-hook (quote (turn-on-gnus-mailing-list-mode mc-install-read-mode hl-line-mode)))
 '(mail-mode-hook (quote (mc-install-write-mode)))
 '(mc-default-scheme (quote mc-scheme-gpg) t)
 '(mc-encrypt-for-me t)
 '(mc-gpg-user-id "Simon Josefsson <simon@josefsson.org>")
 '(mc-pgp-always-sign t)
 '(message-mode-hook (quote (mc-install-write-mode)))




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: gpg.el still not working
  2002-09-23 10:31 ` Simon Josefsson
@ 2002-09-23 12:45   ` Kai Großjohann
  2002-09-23 21:52   ` Jack Twilley
  1 sibling, 0 replies; 11+ messages in thread
From: Kai Großjohann @ 2002-09-23 12:45 UTC (permalink / raw)


Simon Josefsson <jas@extundo.com> writes:

> Does C-: (setq debug-on-signal t) RET give more information?

Little typo: it's M-:, not C-:.

kai
-- 
~/.signature is: umop 3p!sdn    (Frank Nobis)



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: gpg.el still not working
  2002-09-23 10:31 ` Simon Josefsson
  2002-09-23 12:45   ` Kai Großjohann
@ 2002-09-23 21:52   ` Jack Twilley
  2002-09-24 11:22     ` Simon Josefsson
  1 sibling, 1 reply; 11+ messages in thread
From: Jack Twilley @ 2002-09-23 21:52 UTC (permalink / raw)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


>>>>> "Simon" == Simon Josefsson <jas@extundo.com> writes:

Simon> Jack Twilley <jmt+usenet@twilley.org> writes:
>> I'm still getting the following errors when attempting to validate
>> signatures:
>> 
>> [[PGP Signed Part:Error.]  (number-char-or-marker-p nil)]
>> 
>> 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-files-delete)))
  (gpg-with-temp-files 1 (let* (... ... ... res) (with-temp-file msg-file ... ...) (setq res ...) (if ... ... t)))
  gpg-verify-cleartext(#<buffer " *mm-uu*<2>"> #<buffer "*MML2015 Result*">)
  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.
- -- 
Jack Twilley
jmt at twilley dot org
http colon slash slash www dot twilley dot org slash tilde jmt slash
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE9j40MGPFSfAB/ezgRAvIPAJ9QxwPfixdQXRZr069T2SPrhVVltwCg7Bch
uGSA2uGl39qKDDiRhkmV2VA=
=W+ns
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: gpg.el still not working
  2002-09-23 21:52   ` Jack Twilley
@ 2002-09-24 11:22     ` Simon Josefsson
  2002-09-24 14:58       ` Josh Huber
  0 siblings, 1 reply; 11+ messages in thread
From: Simon Josefsson @ 2002-09-24 11:22 UTC (permalink / raw)


Jack Twilley <jmt+usenet@twilley.org> writes:

> 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-files-delete)))
>   (gpg-with-temp-files 1 (let* (... ... ... res) (with-temp-file msg-file ... ...) (setq res ...) (if ... ... t)))
>   gpg-verify-cleartext(#<buffer " *mm-uu*<2>"> #<buffer "*MML2015 Result*">)

`call-process-region' seem to return nil, but according to the
documentation for that function it should never do this unless buffer
was NIL, which wasn't the case here.  Maybe you can strip down the
code and make a bug report (or discover why this happens)?

> 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:

Ah, I don't have a .gnus, so what I posted was all I used.

>  gnus-use-installed-mailcrypt nil

I don't think that variable exists.

>  gnus-use-mailcrypt nil

Neither does this one.

> (require 'gpg)

This is not necessary if you have gpg in your load-path.

> (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"))

Hm, are gpg and pgppg in PATH?  Maybe call-process-region returns nil
if the commands aren't found?  For me in Emacs it triggers an error
though, which seems correct.

>  gpg-passphrase-timeout 5
>  gpg-temp-directory "~/.gnupg/tmp"
>  mml2015-use 'gpg

Gpg is the default for mml2015 if it is found, so this shouldn't be
necessary either.




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: gpg.el still not working
  2002-09-24 11:22     ` Simon Josefsson
@ 2002-09-24 14:58       ` Josh Huber
  2002-09-24 17:06         ` Jack Twilley
  0 siblings, 1 reply; 11+ messages in thread
From: Josh Huber @ 2002-09-24 14:58 UTC (permalink / raw)


Simon Josefsson <jas@extundo.com> writes:

> `call-process-region' seem to return nil, but according to the
> documentation for that function it should never do this unless
> buffer was NIL, which wasn't the case here.  Maybe you can strip
> down the code and make a bug report (or discover why this happens)?

I believe I responded about this the last time the question was asked.

See: <87u1lu52se.fsf@mail.paradoxical.net>

Jack, you asked this about a month ago, and I'm pretty sure the answer
is the same.  Have you tried updating your XEmacs cvs?

-- 
Josh Huber



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: gpg.el still not working
  2002-09-24 14:58       ` Josh Huber
@ 2002-09-24 17:06         ` Jack Twilley
  2002-09-24 17:27           ` Josh Huber
  0 siblings, 1 reply; 11+ messages in thread
From: Jack Twilley @ 2002-09-24 17:06 UTC (permalink / raw)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


>>>>> "Josh" == Josh Huber <huber@alum.wpi.edu> writes:

Simon> `call-process-region' seem to return nil, but according to the
Simon> documentation for that function it should never do this unless
Simon> buffer was NIL, which wasn't the case here.  Maybe you can
Simon> strip down the code and make a bug report (or discover why this
Simon> happens)?

Josh> I believe I responded about this the last time the question was
Josh> asked.

Josh> See: <87u1lu52se.fsf@mail.paradoxical.net>

I was unable to find this message ID with Google.

Josh> Jack, you asked this about a month ago, and I'm pretty sure the
Josh> answer is the same.  Have you tried updating your XEmacs cvs?

I haven't updated my XEmacs sine August 14th.  I am doing so now.

Josh> -- Josh Huber

Jack.
(ah, xemacs.)
- -- 
Jack Twilley
jmt at twilley dot org
http colon slash slash www dot twilley dot org slash tilde jmt slash
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE9kJuiGPFSfAB/ezgRAuYtAKDsmFr127ev5Ay/u8UozinG8U5dUACgs37a
0gCJ39qZ3VfPApQKWnQ3qJU=
=FK2J
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: gpg.el still not working
  2002-09-24 17:06         ` Jack Twilley
@ 2002-09-24 17:27           ` Josh Huber
  2002-09-24 18:54             ` Jack Twilley
  0 siblings, 1 reply; 11+ messages in thread
From: Josh Huber @ 2002-09-24 17:27 UTC (permalink / raw)


Jack Twilley <jmt+usenet@twilley.org> writes:

>>>>>> "Josh" == Josh Huber <huber@alum.wpi.edu> writes:
>
> Simon> `call-process-region' seem to return nil, but according to the
> Simon> documentation for that function it should never do this unless
> Simon> buffer was NIL, which wasn't the case here.  Maybe you can
> Simon> strip down the code and make a bug report (or discover why this
> Simon> happens)?
>
> Josh> I believe I responded about this the last time the question was
> Josh> asked.
>
> Josh> See: <87u1lu52se.fsf@mail.paradoxical.net>
>
> I was unable to find this message ID with Google.

Why not use Gnus?  Put the cursor over the msgid, and hit C-c ^

It looks like you're having the same problem I was dealing with at the
time.

-- 
Josh Huber



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: gpg.el still not working
  2002-09-24 17:27           ` Josh Huber
@ 2002-09-24 18:54             ` Jack Twilley
  2002-09-24 20:17               ` Josh Huber
  0 siblings, 1 reply; 11+ messages in thread
From: Jack Twilley @ 2002-09-24 18:54 UTC (permalink / raw)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


>>>>> "Josh" == Josh Huber <huber@alum.wpi.edu> writes:

Josh> See: <87u1lu52se.fsf@mail.paradoxical.net>

Jack>  I was unable to find this message ID with Google.

Josh> Why not use Gnus?  Put the cursor over the msgid, and hit C-c ^

I didn't even think of it.  Learn something new every day.

Josh> It looks like you're having the same problem I was dealing with
Josh> at the time.

I just rebuild XEmacs from an updated CVS and am still having the
problem.  Did you ever get a bug report number from Adrian or the
automated thing?  I'll submit one now if you don't have a tracking
number or whatever they use.

Josh> -- Josh Huber

Jack.
- -- 
Jack Twilley
jmt at twilley dot org
http colon slash slash www dot twilley dot org slash tilde jmt slash
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE9kLUCGPFSfAB/ezgRAj3BAJ9QZKYy/8lBzq10hfSFIWnJxkglNACeMPUn
M66y8hYP8TC4nbsDAIf7j1U=
=oP9o
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: gpg.el still not working
  2002-09-24 18:54             ` Jack Twilley
@ 2002-09-24 20:17               ` Josh Huber
  2002-09-25  0:55                 ` Jack Twilley
  0 siblings, 1 reply; 11+ messages in thread
From: Josh Huber @ 2002-09-24 20:17 UTC (permalink / raw)


Jack Twilley <jmt+usenet@twilley.org> writes:

> I just rebuild XEmacs from an updated CVS and am still having the
> problem.  Did you ever get a bug report number from Adrian or the
> automated thing?  I'll submit one now if you don't have a tracking
> number or whatever they use.

I submitted a bug report, and ended up emailing back and forth with
Ben about it for a little while... (I think).  I'm pretty sure he
claimed it would be fixed during the next update from him -- perhaps
it got forgotton?

I'm not runnning the CVS version of XEmacs though, because I kept
having problems (like this one) with it, which I didn't have time to
work out. :(

-- 
Josh Huber



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: gpg.el still not working
  2002-09-24 20:17               ` Josh Huber
@ 2002-09-25  0:55                 ` Jack Twilley
  0 siblings, 0 replies; 11+ messages in thread
From: Jack Twilley @ 2002-09-25  0:55 UTC (permalink / raw)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


>>>>> "Josh" == Josh Huber <huber@alum.wpi.edu> writes:

Jack> I just rebuild XEmacs from an updated CVS and am still having
Jack> the problem.  Did you ever get a bug report number from Adrian
Jack> or the automated thing?  I'll submit one now if you don't have a
Jack> tracking number or whatever they use.

Josh> I submitted a bug report, and ended up emailing back and forth
Josh> with Ben about it for a little while... (I think).  I'm pretty
Josh> sure he claimed it would be fixed during the next update from
Josh> him -- perhaps it got forgotton?

I just filed a bug report on the situation.  I look forward to hearing
- From them.

Josh> I'm not runnning the CVS version of XEmacs though, because I
Josh> kept having problems (like this one) with it, which I didn't
Josh> have time to work out. :(

This and one other thing keep me in the CVS Xemacs zone.  I'm
currently doing whatever I can to minimize the number of apps I
maintain in CVS -- I have xemacs and Apache2/PHP4/Gallery left.

Josh> -- Josh Huber

Jack.
(frigging PHP.  Bah.)
- -- 
Jack Twilley
jmt at twilley dot org
http colon slash slash www dot twilley dot org slash tilde jmt slash
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE9kQmMGPFSfAB/ezgRAkosAKDWy3bjKDPFpNLTNgwY43NECCBlqwCfYWuz
SSlb0R/kw1DISOtdczryNhk=
=5uZ6
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2002-09-25  0:55 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-23  2:18 gpg.el still not working Jack Twilley
2002-09-23 10:31 ` Simon Josefsson
2002-09-23 12:45   ` Kai Großjohann
2002-09-23 21:52   ` Jack Twilley
2002-09-24 11:22     ` Simon Josefsson
2002-09-24 14:58       ` Josh Huber
2002-09-24 17:06         ` Jack Twilley
2002-09-24 17:27           ` Josh Huber
2002-09-24 18:54             ` Jack Twilley
2002-09-24 20:17               ` Josh Huber
2002-09-25  0:55                 ` Jack Twilley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).