From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YOwuG6fM6GFyZAEAgWs5BA (envelope-from ) for ; Thu, 20 Jan 2022 03:44:55 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id qJjPF6fM6GGrowAAauVa8A (envelope-from ) for ; Thu, 20 Jan 2022 03:44:55 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3027D20E76 for ; Thu, 20 Jan 2022 03:44:55 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id DCA5A5F6DA; Thu, 20 Jan 2022 02:44:50 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 6B6505F527 for ; Thu, 20 Jan 2022 02:44:48 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id B7ED35FC01; Wed, 19 Jan 2022 21:44:47 -0500 (EST) Received: (nullmailer pid 3752858 invoked by uid 1000); Thu, 20 Jan 2022 02:44:46 -0000 From: David Bremner To: David Bremner , Daniel Kahn Gillmor , Notmuch Mail Subject: [PATCH] test/emacs: known broken test for matching fcc and sent message Date: Wed, 19 Jan 2022 22:44:44 -0400 Message-Id: <20220120024444.3752845-1-david@tethera.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <87v8yfvnfg.fsf@tethera.net> References: <87v8yfvnfg.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: A4G2SXTXHHRJD6AM3N4WRSFNL4LYT436 X-Message-ID-Hash: A4G2SXTXHHRJD6AM3N4WRSFNL4LYT436 X-MailFrom: bremner@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642646695; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=xP8YKZrPx/u2R0xxmYh/y9JXZUI9WvaVKNNGgyvzXl8=; b=XPXJ/ylbGf6ArLNYJH4Sk6N88vxYTlAYF/uivTqjrr/moBcA6hbCghLov+8E9U4XaODChQ of3YaCNyb2cJvMZRShwgQNgmzjDvMa9JUm8nOBDSEFf1lKloBU1SIaEAgx+08tEvaTbR8V qtUwIs/nMjoqDWHaCTOXwFqLHRU31t+ykyo08hpH6YhCv4vYfSxEATAN2VpE4hw3Zpwe8N p3H0VFpiXLzhbJ2md5RP+zB/GUCi/lsYe9MM1PR6SxUz3Da8aAJwblcfNMkCYjIR+4fJDx 2z5c6+g+DVY5MQs48DUp/p6fOV+X7RQcuWxv70Tim6tVKHIdaDWfeRnafvHYsA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642646695; a=rsa-sha256; cv=none; b=EMKCVrsThXdKbHOGoUYvA9IuU1q5SvwlI+bYgb18DbxYPtWY+Jv7cB9N48adtNRyO6zrSV ZXkokG6LL+zpGzbO7mQvot8MILXtG4cl9OLMLOi9KIrERP0EyKIf9AN/2PehnldBHdwcII llTc3WRVqlqlqifz8frONmupdZa4G4SoASrsKFjOaLg4xH4XJgSQKNOBBsKP91YcrDtekX xh1gUon8DzSUo9YshaG7h8EEW/Y68xb+ZQEG1Rscmd8kV2JUDpkelNkUaiki6jtltvIXJn 2azKxlvFZerEQPpykXZPxsM2IyTX2WvIuJhIgsX2CeG1DmSMBBN/KsmW57+5Sw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -1.35 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 3027D20E76 X-Spam-Score: -1.35 X-Migadu-Scanner: scn1.migadu.com X-TUID: pUhl3cPGYeLc Based on the method outlined by Daniel Kahn Gilmour in id:87k1zm225v.fsf@fifthhorseman.net. With a delay of 0.2 seconds the test becomes flaky on my machine. With a 1 second delay it fails consistently for more than 1600 iterations. --- test/T350-crypto.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/test/T350-crypto.sh b/test/T350-crypto.sh index 8dbf8935..1283c52c 100755 --- a/test/T350-crypto.sh +++ b/test/T350-crypto.sh @@ -13,13 +13,23 @@ test_description='PGP/MIME signature verification and decryption' test_require_emacs add_gnupg_home -test_begin_subtest "emacs delivery of signed message" +test_begin_subtest "emacs delivery of signed message via fcc" test_expect_success \ 'emacs_fcc_message \ "test signed message 001" \ "This is a test signed message." \ "(mml-secure-message-sign)"' +test_begin_subtest "emacs delivery of signed message via fcc and smtp" +test_subtest_known_broken +emacs_deliver_message \ + 'signed message sent via SMTP' \ + 'This is a test that messages are sent via SMTP' \ + "(add-hook 'message-send-mail-hook (lambda () (sleep-for 1))) + (mml-secure-message-sign)" +msg_file=$(notmuch search --output=files subject:signed-message-sent-via-SMTP) +test_expect_equal_file sent_message "$msg_file" + test_begin_subtest "signed part content-type indexing" output=$(notmuch search mimetype:multipart/signed and mimetype:application/pgp-signature | notmuch_search_sanitize) test_expect_equal "$output" "thread:XXX 2000-01-01 [1/1] Notmuch Test Suite; test signed message 001 (inbox signed)" -- 2.34.1