From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 3D6926DE02B7 for ; Mon, 12 Sep 2016 18:46:24 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.007 X-Spam-Level: X-Spam-Status: No, score=-0.007 tagged_above=-999 required=5 tests=[AWL=0.004, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IjPvFRMzXxeu for ; Mon, 12 Sep 2016 18:46:23 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 20DAD6DE02AF for ; Mon, 12 Sep 2016 18:46:21 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.84_2) (envelope-from ) id 1bjcnd-00058N-36; Mon, 12 Sep 2016 21:46:13 -0400 Received: (nullmailer pid 24506 invoked by uid 1000); Tue, 13 Sep 2016 01:46:19 -0000 From: David Bremner To: Mark Walters , notmuch@notmuchmail.org Subject: [PATCH 1/2] test/crypto: test reply to encrypted message in emacs Date: Mon, 12 Sep 2016 22:45:57 -0300 Message-Id: <20160913014558.24392-2-david@tethera.net> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20160913014558.24392-1-david@tethera.net> References: <1473718339-19946-1-git-send-email-markwalters1009@gmail.com> <20160913014558.24392-1-david@tethera.net> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 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: Tue, 13 Sep 2016 01:46:24 -0000 This is the current button ridden format, to be cleaned up in a subsequent commit. --- test/T350-crypto.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/test/T350-crypto.sh b/test/T350-crypto.sh index 96349fa..28ea9ad 100755 --- a/test/T350-crypto.sh +++ b/test/T350-crypto.sh @@ -316,6 +316,28 @@ test_expect_equal \ "$output" \ "$expected" +test_begin_subtest "Reply within emacs to an encrypted message" +test_emacs "(let ((message-hidden-headers '()) + (notmuch-crypto-process-mime 't)) + (notmuch-show \"subject:test.encrypted.message.002\") + (notmuch-show-reply) + (test-output))" +# the empty To: is probably a bug, but it's not to do with encryption +grep -v -e '^In-Reply-To:' -e '^References:' -e '^Fcc:' -e 'To:' < OUTPUT > OUTPUT.clean +cat <EXPECTED +From: Notmuch Test Suite +Subject: Re: test encrypted message 002 +--text follows this line-- +<#secure method=pgpmime mode=signencrypt> +Notmuch Test Suite writes: + +> [ Decryption successful ] +> [ Good signature by: Notmuch Test Suite (INSECURE!) ] +> Version: 1 +> This is another test encrypted message. +EOF +test_expect_equal_file EXPECTED OUTPUT.clean + test_begin_subtest "signature verification with revoked key" # generate revocation certificate and load it to revoke key echo "y -- 2.9.3