From: Simon Hirscher Date: Wed, 4 Sep 2013 22:01:58 +0000 (+0200) Subject: [BUG] Decryption fails if message was signed with an unknown key X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=485ecb61565ce91faa52e0d2d97a8dde95400b4b;p=notmuch-archives.git [BUG] Decryption fails if message was signed with an unknown key --- diff --git a/40/ccee116bd29799971415a3b53e09ee0b2678cb b/40/ccee116bd29799971415a3b53e09ee0b2678cb new file mode 100644 index 000000000..50cd43d8e --- /dev/null +++ b/40/ccee116bd29799971415a3b53e09ee0b2678cb @@ -0,0 +1,124 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id B7332431E84 + for ; Wed, 4 Sep 2013 15:02:42 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 1.363 +X-Spam-Level: * +X-Spam-Status: No, score=1.363 tagged_above=-999 required=5 + tests=[RDNS_DYNAMIC=0.363, TO_NO_BRKTS_DYNIP=1] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id 3XSSG2Cx3GE0 for ; + Wed, 4 Sep 2013 15:02:38 -0700 (PDT) +Received: from cloudia.org (lvps176-28-19-116.dedicated.hosteurope.de + [176.28.19.116]) + (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id DFED0431E82 + for ; Wed, 4 Sep 2013 15:02:37 -0700 (PDT) +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20130820; + h=mime-version:from:date:message-id:subject:to:content-type + :content-transfer-encoding; + bh=nUFMf91emxGZBi+k5mxPRnQgNnvKWzYpxhCJhxFl+80=; + b=R7GXI4S50iQ4F+XUqXcy21i81A13tlr/OLwlpMkFnR3p1W7x4UpvhTbBIFN+6IYJa7 + QPiVLW2i/343Se8dzVe7GpAyTTJNd+aZpqQ15Si5/IMAsAQkUy+2pRVxO3Qux+rAehk7 + 2eEV9WPTfrv2N6jajlvKkg20umzoR5gDYv6re4VygfJ4PN+8RV1z5eRVeUlE8Pwzwydh + LsGPltMNaAFMaqx0i5mSaiNDB4buwDGi+2BuZ8uvu+Aw7rGyaFX+qM5lgJJWxAI172u1 + 5jvrmuMYRTq4Uvtbu5pks6R7qMhl+KmCTTVgkTofl82zWE8QVtQDZJj7aG322rTVWqaB + zLWA== +X-Received: by 10.112.57.49 with SMTP id f17mr4229014lbq.26.1378332148626; + Wed, 04 Sep 2013 15:02:28 -0700 (PDT) +MIME-Version: 1.0 +From: Simon Hirscher +Date: Thu, 5 Sep 2013 00:01:58 +0200 +Message-ID: + +Subject: [BUG] Decryption fails if message was signed with an unknown key +To: notmuch@notmuchmail.org +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: quoted-printable +X-Mailman-Approved-At: Wed, 04 Sep 2013 22:55:50 -0700 +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Wed, 04 Sep 2013 22:02:42 -0000 + +Dear notmuch developers, + +This is now the second time the following has happened to me: + +######### +$ notmuch show --decrypt id:xyz@example.com + +message{ id:xyz@example.com depth:0 match:1 excluded:0 filename:/home/simon= +/*** + +header{ +John Doe (Today 21:52) (encrypted inbox new) +Subject: foobar +From: John Doe +To: *** +Date: Thu, 01 Jan 1970 00:00:00 +0000 + +header} + +body{ +Failed to decrypt part: gpg: ASCII-H=C3=BClle: Version: GnuPG v2.0.17 (Ming= +W32) +gpg: +gpg: AES256 encrypted data +gpg: Original file name=3D'' +gpg: Signature from Thu 01 Jan 1970 00:00:00 UTC by DSA key ID +gpg: Signature cannot be verified. Public key not found + +part{ ID: 1, Content-type: multipart/encrypted + +part{ ID: 2, Content-type: application/pgp-encrypted +Non-text part: application/pgp-encrypted + +part} + +part{ ID: 3, Filename: encrypted.asc, Content-type: application/octet-strea= +m +Non-text part: application/octet-stream + +part} + +part} + +body} + +message} + +$ gpg --recv-keys + +$ notmuch show --decrypt id:xyz@example.com + +[=E2=80=A6] +Hey there, +Now the decryption worked! +[=E2=80=A6] + +############ + +Also, I should add that manually decrypting the message with gpg (i.e. +without using notmuch) already worked *before* I added the sender's +key (not shown above). Still, notmuch obviously doesn't like it when +the sender is unknown. + +I hope you're going to look into this. Thank you!