From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uC9ZBbojCWJZBAEAgWs5BA (envelope-from ) for ; Sun, 13 Feb 2022 16:28:58 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 4C2zObkjCWK6vwAAG6o9tA (envelope-from ) for ; Sun, 13 Feb 2022 16:28:57 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (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 B4744128F7 for ; Sun, 13 Feb 2022 16:28:57 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id D6C865F6E8; Sun, 13 Feb 2022 15:28:53 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id B8A4F5F6E8 for ; Sun, 13 Feb 2022 15:28:51 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 41D895FBD4; Sun, 13 Feb 2022 10:28:50 -0500 (EST) Received: (nullmailer pid 3015404 invoked by uid 1000); Sun, 13 Feb 2022 15:27:56 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH 2/4] test: add known broken test for insert with mbox as input Date: Sun, 13 Feb 2022 11:27:49 -0400 Message-Id: <20220213152751.3015318-3-david@tethera.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220213152751.3015318-1-david@tethera.net> References: <20220213152751.3015318-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: ASQUMGLW33QW6JURU4S3F37ZWE5IR3SH X-Message-ID-Hash: ASQUMGLW33QW6JURU4S3F37ZWE5IR3SH 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=1644766137; 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=Y87TubtiEQ+e9n1eVa1csd/oAfNvvj9azaC3idbJdA8=; b=kXXR5iozWhujyATzlxGfqjN1F8PrsRpVqOGh5idKwDNPVHj4eZD3bKZTgJ7HCUZ/MJsr8g 9gj6PabeYqc0mtcJ7l9XC5pBWv3kUzLWROREcShnviM5DStj6Dqeb0NKsPuvXsmj1TnT1t wib0U7rzg1mnIhHwoccI1mWZjXgoayqMiQsqYSaUTB1vG9zn6Q7eu+nd+xR5CHGWnFFJXL 9+ivjy4PqCfpW40985foXiMXdpOKGbTN6rgwyv3Bnva4DkLY1NVbtiVdbOECkhsOXOjiXK fbb4x9fDewUHo/NQ+YqTcVWAk+f0ExiGL1Zly7y2TQ4xZFvAkfM71+/4yGD+KA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644766137; a=rsa-sha256; cv=none; b=bqgVrVn99VnkD0AnaIXmE1j5EUASoIEwg4UNsP/5e3NX4cyeLaSNIA3rj/GJWeMKp4SSFT x1Q+dHo1F9RiaXfzarsh3m90DCFouYaVa9cW/ui8hM3pW1QOZa5hEKTiCxWwLjJLXjanMs yO0ZsLJbmjOUE8WnOGkw6Hn4qoawhAnkiQx0INhZoOhmlMl3AqvU2fH4mBwX2cCRGd0vqh VlyaNYfy+kreBNqFBGh9sRCJ2LZ2R1t+JTtzHPXnoxuzrg1t7QegO6sDD76WjAo5LinT1L T9Pmc4QdPO4/Sw7gU1zpku1zw03EYOBo/UiIZtK7dCpCLPPiWx2Loeeb3XwB1w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -1.34 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: B4744128F7 X-Spam-Score: -1.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: T0jmatEy1BwL It seems reasonable that notmuch should try to avoid delivering messages in formats it cannot index. --- test/T070-insert.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/T070-insert.sh b/test/T070-insert.sh index ec170b30..a297fa73 100755 --- a/test/T070-insert.sh +++ b/test/T070-insert.sh @@ -292,4 +292,10 @@ for code in OUT_OF_MEMORY XAPIAN_EXCEPTION ; do test_expect_code 0 "notmuch_with_shim shim-$code insert --keep < \"$gen_msg_filename\"" done +test_begin_subtest "insert converts mboxes on delivery" +test_subtest_known_broken +notmuch insert +unmboxed < "${TEST_DIRECTORY}"/corpora/indexing/mbox-attachment.eml +output=$(notmuch count tag:unmboxed) +test_expect_equal "${output}" 1 + test_done -- 2.34.1