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 4L+XCbohB2JffQEAgWs5BA (envelope-from ) for ; Sat, 12 Feb 2022 03:55:54 +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 CLQ3ArohB2J/dAAAG6o9tA (envelope-from ) for ; Sat, 12 Feb 2022 03:55:54 +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 C7C2946171 for ; Sat, 12 Feb 2022 03:55:53 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 6A5ED5F729; Sat, 12 Feb 2022 02:55:46 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 19A445F720 for ; Sat, 12 Feb 2022 02:55:43 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 6B8615FBD4; Fri, 11 Feb 2022 21:55:42 -0500 (EST) Received: (nullmailer pid 1690525 invoked by uid 1000); Sat, 12 Feb 2022 02:55:17 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [RFC PATCH 2/3] test: add known broken test for insert with mbox as input Date: Fri, 11 Feb 2022 22:55:02 -0400 Message-Id: <20220212025503.1690413-3-david@tethera.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220212025503.1690413-1-david@tethera.net> References: <20220212025503.1690413-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: JRVIEDJVNLYA5SN5KFRADZFJMTKSMVG3 X-Message-ID-Hash: JRVIEDJVNLYA5SN5KFRADZFJMTKSMVG3 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=1644634553; 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=QWAWzS8qsoiFnlKwaqUl+dMd/gMLkugRjm5InQLXRhoefssInB/bX57AHeHKIgzB1LupHx X71no4SNTlokEvrxoTNL01lN0hYkAPCqsN80pG+B+lgkzQpVnh1dzIjkZOTCJT9mVkpVah roLftJQ+ApcW47KU79IY4tAHrTVGBnX5Fkf7IXBvchEVDUX8wgGmGen04zlYA30i/N/OLb wgZOcKfwnf3BRxrIQCfL5WyKuqlnJLW+1QYC2R3MdI5RzJV78GK1XsMXjS0VXWpoQtEvUq N3tstYpBw6m/pdZXqUPaJClvA8j1lp9Bw0kqxssrPxYX6Y1KSYZL4Nk/aFDesw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644634553; a=rsa-sha256; cv=none; b=nMx7LIbmNthVRWGeJS9hpv00Z+ygHQUUxKK7Bd++PZHy5dQZtwgbCkA9ORIUjXhXvoBYvg 9vfHamOlhRP7x+GcNPHS8JzNJ86HMdcherTaTTKCVIVRdNFCq2Wh96hZPz7OiBVByUlqW7 SsR2/lcQH88MQh8JCP9JeRRgJ/cWvHk/KP7GtWQIrKpjyIV+lwP2SEGXWMcKu6ZWe6L6uV eYiYpDTtCT/sOpSXQIngECejBSWysG1jdwT9VkAQUr+giucmnBtS0cSFdQ3Ij5eieI3u/q iaFBdsTqDc4HR8Z9ec9Pvvck4Ihz/T5k/Kj6ME87Cc3iIpeAAK4PDBFRoA1OKQ== 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.34 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: C7C2946171 X-Spam-Score: -1.34 X-Migadu-Scanner: scn1.migadu.com X-TUID: W4Wmgd9tQbTL 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