Subject: bug#4937: 23.1.50; PGP/MIME signature doesn't work

From: Torsten Bronger <[email-masked]>
Date: Sun, 11 Sep 2011 11:58:45 +0200

Hallöchen!

Lars Magne Ingebrigtsen writes:

> Torsten Bronger <[email-masked]> writes:
>
>> When signing an email in Gnus with C-c RET s p and trying to send
>> it, Emacs reports "apply: Wrong type argument: stringp, 48" and
>> the email is not sent.
>>
>> The same procedure with "C-c RET s o" (plain PGP) works, however.
>
> Is this still a problem?  If so, could you (setq debug-on-error t)
> and post the resulting backtrace?

Debugger entered--Lisp error: (wrong-type-argument stringp 48)
  call-process("/usr/bin/gpg" nil (t nil) nil "--with-colons" "--no-greeting" "--batch" "--with-fingerprint" "--with-fingerprint" "--fixed-list-mode" "--list-secret-keys" 48)
  apply(call-process "/usr/bin/gpg" nil (t nil) nil ("--with-colons" "--no-greeting" "--batch" "--with-fingerprint" "--with-fingerprint" "--fixed-list-mode" "--list-secret-keys" 48))
  epg--list-keys-1((epg-context . [OpenPGP nil nil nil nil nil nil (epg-passphrase-callback-function) nil nil nil nil nil nil nil]) 48 t)
  epg-list-keys((epg-context . [OpenPGP nil nil nil nil nil nil (epg-passphrase-callback-function) nil nil nil nil nil nil nil]) 48 t)
  mml2015-epg-find-usable-secret-key((epg-context . [OpenPGP nil nil nil nil nil nil (epg-passphrase-callback-function) nil nil nil nil nil nil nil]) 48 sign)
  #[(signer) "\303	\304#\211\204\305\306\307	\"!\204\310\311	\"\210\n\207" [context signer signer-key mml2015-epg-find-usable-secret-key sign y-or-n-p format "No secret key for %s; skip it? " error "No secret key for %s"] 5](48)
  mapcar(#[(signer) "\303	\304#\211\204\305\306\307	\"!\204\310\311	\"\210\n\207" [context signer signer-key mml2015-epg-find-usable-secret-key sign y-or-n-p format "No secret key for %s; skip it? " error "No secret key for %s"] 5] "0x9F516B77")
  mml2015-epg-sign((part (sign . "pgpmime") (tag-location . 819) (contents . "test\n-- \nTorsten Bronger    Jabber ID: [email-masked]\n                                  or http://bronger-jmp.appspot.com\n")))
  mml2015-sign((part (sign . "pgpmime") (tag-location . 819) (contents . "test\n-- \nTorsten Bronger    Jabber ID: [email-masked]\n                                  or http://bronger-jmp.appspot.com\n")))
  mml-pgpmime-sign-buffer((part (sign . "pgpmime") (tag-location . 819) (contents . "test\n-- \nTorsten Bronger    Jabber ID: [email-masked]\n                                  or http://bronger-jmp.appspot.com\n")))
  mml-generate-mime-1((part (sign . "pgpmime") (tag-location . 819) (contents . "test\n-- \nTorsten Bronger    Jabber ID: [email-masked]\n                                  or http://bronger-jmp.appspot.com\n")))
  mml-generate-mime()
  message-encode-message-body()
  message-send-mail(nil)
  message-send-via-mail(nil)
  message-send(nil)
  message-send-and-exit(nil)
  call-interactively(message-send-and-exit nil nil)

Tschö,
Torsten.

-- 
Torsten Bronger    Jabber ID: [email-masked]
                                  or http://bronger-jmp.appspot.com