From: Noam Postavsky <npostavs@users.sourceforge.net>
To: Toon Claes <toon@iotcl.com>
Cc: 26298@debbugs.gnu.org, Torsten Bronger <bronger@physik.rwth-aachen.de>
Subject: bug#26298: 26.0.50; Gnus fails to sign mail with PGP
Date: Sun, 28 Jan 2018 16:23:02 -0500 [thread overview]
Message-ID: <87vaflk79l.fsf@users.sourceforge.net> (raw)
In-Reply-To: <m2shap3h8s.fsf@iotcl.com> (Toon Claes's message of "Sun, 28 Jan 2018 20:39:31 +0100")
Toon Claes <toon@iotcl.com> writes:
> On Tue, Aug 15, 2017 at 1:54 AM, Toon Claes <toon@iotcl.com> wrote:
>> npostavs@users.sourceforge.net writes:
>>
>>> Does the patch at https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23619#14
>>> help?
>>
>> Well, actually it does help.
>
> One thing though, with this patch, if I enter the incorrect passphrase,
> it gives me an error:
>
> Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil)
> mml2015-epg-sign((part (sign . "pgpmime") (tag-location . 803) (contents . "<redacted>")))
> mml2015-sign((part (sign . "pgpmime") (tag-location . 803) (contents . "<redacted>")))
I can't reproduce the original bug, but this I can, although with
mml1991 (not clear to me how this get's chosen). I think it's just a
matter of making the error a bit clearer, e.g.:
--- i/lisp/gnus/mml1991.el
+++ w/lisp/gnus/mml1991.el
@@ -277,6 +277,8 @@ mml1991-epg-sign
(mm-decode-content-transfer-encoding cte)))
(let* ((pair (mml-secure-epg-sign 'OpenPGP 'clear))
(signature (car pair)))
+ (unless (stringp signature)
+ (error "Signature failed"))
(delete-region (point-min) (point-max))
(insert
(with-temp-buffer
diff --git i/lisp/gnus/mml2015.el w/lisp/gnus/mml2015.el
index b220a96098..6baae80309 100644
--- i/lisp/gnus/mml2015.el
+++ w/lisp/gnus/mml2015.el
@@ -958,6 +958,8 @@ mml2015-epg-sign
(let* ((pair (mml-secure-epg-sign 'OpenPGP t))
(signature (car pair))
(micalg (cdr pair)))
+ (unless (stringp signature)
+ (error "Signature failed"))
(goto-char (point-min))
(insert (format "Content-Type: multipart/signed; boundary=\"%s\";\n"
boundary))
> When I try again instantly, it does not ask me for the passphrase and
> just pops up the same error. When I wait for, I think, about 10 seconds
> to retry, it asks for a passphrase again.
Hmm, I can't reproduce this one, I guess it's related to gpg version (I
have 2.1.18) and how the caching works.
next prev parent reply other threads:[~2018-01-28 21:23 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-29 12:15 bug#26298: 26.0.50; Gnus fails to sign mail with PGP Torsten Bronger
2017-08-14 20:33 ` Toon Claes
2017-08-14 21:19 ` Toon Claes
2017-08-14 23:46 ` npostavs
2017-08-15 5:54 ` Toon Claes
2017-08-15 15:23 ` Noam Postavsky
2018-01-28 19:39 ` Toon Claes
2018-01-28 21:23 ` Noam Postavsky [this message]
2018-04-11 22:06 ` Lars Ingebrigtsen
2018-04-12 7:25 ` Noam Postavsky
2018-04-12 11:37 ` Lars Ingebrigtsen
2018-04-12 12:45 ` Noam Postavsky
2018-04-14 6:52 ` Toon Claes
2018-04-14 13:12 ` Lars Ingebrigtsen
2018-04-14 13:36 ` Toon Claes
2018-04-14 13:54 ` Lars Ingebrigtsen
2018-04-14 13:15 ` Lars Ingebrigtsen
2018-04-29 14:38 ` Noam Postavsky
2018-05-17 23:41 ` Noam Postavsky
2018-05-18 9:55 ` Basil L. Contovounesios
2018-05-18 13:38 ` Noam Postavsky
2018-05-23 23:09 ` Noam Postavsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vaflk79l.fsf@users.sourceforge.net \
--to=npostavs@users.sourceforge.net \
--cc=26298@debbugs.gnu.org \
--cc=bronger@physik.rwth-aachen.de \
--cc=toon@iotcl.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.