From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <public@simonhirscher.de>
Received: from localhost (localhost [127.0.0.1])
	by olra.theworths.org (Postfix) with ESMTP id B7332431E84
	for <notmuch@notmuchmail.org>; 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 <notmuch@notmuchmail.org>;
	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 <notmuch@notmuchmail.org>; 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 <public@simonhirscher.de>
Date: Thu, 5 Sep 2013 00:01:58 +0200
Message-ID: <CAEj42wtt9O1-k9hm9DNCh7En=b-eDYQWham5-FR-wzrt+sij+g@mail.gmail.com>
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."
	<notmuch.notmuchmail.org>
List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
	<mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
List-Archive: <http://notmuchmail.org/pipermail/notmuch>
List-Post: <mailto:notmuch@notmuchmail.org>
List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
	<mailto:notmuch-request@notmuchmail.org?subject=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 <sender@example.com> (Today 21:52) (encrypted inbox new)
Subject: foobar
From: John Doe <sender@example.com>
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: <list of keys the message was encrypted with>
gpg: AES256 encrypted data
gpg: Original file name=3D''
gpg: Signature from Thu 01 Jan 1970 00:00:00 UTC by DSA key ID <sender's ke=
y>
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 <sender's key>

$ 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!