From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 iIa+LYTV/mFAAgAAgWs5BA (envelope-from ) for ; Sat, 05 Feb 2022 20:52:36 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 0H2RKoTV/mE8cAAAauVa8A (envelope-from ) for ; Sat, 05 Feb 2022 20:52:36 +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 55C6E3CF7B for ; Sat, 5 Feb 2022 20:52:36 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 762125F711; Sat, 5 Feb 2022 19:52:33 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id AD4995F70C for ; Sat, 5 Feb 2022 19:52:30 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 7F3EC5FBD2; Sat, 5 Feb 2022 14:52:29 -0500 (EST) Received: (nullmailer pid 166330 invoked by uid 1000); Sat, 05 Feb 2022 19:52:28 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: allow disabling the check for multi-message mboxes Date: Sat, 5 Feb 2022 15:52:09 -0400 Message-Id: <20220205195215.166213-1-david@tethera.net> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Message-ID-Hash: ML7RDJYHBLQW5TY6GMHPXM4N56YVFESN X-Message-ID-Hash: ML7RDJYHBLQW5TY6GMHPXM4N56YVFESN 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=1644090756; 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:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=OuV4h41BBg5eDXtGEG/ifb6lj5qYr1JH7cD4sFfxG84=; b=V1K5NvC26YWrYMjHUbA1DMsn+8866WxnoQA7Wmh2G08E/g0FfuEfpsmGIuBSD/7DHgHO2q auQxmCum4fisCizABZZLFqiVsXbHYEFKgHD+Yodl3TAfKB6EP7tYVna9jRhNmx6vjyApRy wiY3g8R6BuiHHyN6UwgMfCKN/EMNOEGZ4gWFiqwIwrkEdVwoGf+s+5bcd1lwqsu6KTjuDO cRvqT373F+3BN1CBsFe2uNFss3B0Zq88XdyMu/ctCccuocEDwixxhATHWVzajXLLS6vl+W W0o09QEPiirVwXWjA18BLlVzwSm6MFBBM3fV+5gT7Ddxc/Ux14FaHOfbqNwnPg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644090756; a=rsa-sha256; cv=none; b=pQXl5Fpxfm3e4JCjJrXgp6ZPsDPIByEO8ZTWb1dBgmfuYINKhgZILnw2E4MfD0NX/pdsQE D8d/Qpwi/FUZrBZ7kQ7nc83XUcezuuap383FKJEqHTMPwlh6Mw93O+xtyBujwNBulrDarp 7l0JRMjDLxsSgyU9srKZcPyC6aXtV85c+h+ob9cPCAYPZuSwYgW9FnN5yL2OB97cu573jH NTacvohJRbdhiRoB2fVmbV7anpG7T+zpoFX//pT224PeUBHMTC5TuZemF0Z7SPP/C0GluH J7mKl/A1mVZ1qI9t88f/KD5P6PJE5McGX+h0aCj/PgkihosZPn6Ow/KC88qQDQ== 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: -2.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: 55C6E3CF7B X-Spam-Score: -2.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: 6uotZjv8yn0h Notmuch tries to prevent users from shooting themselves in the foot by indexing mboxes containing multiple messages. On the other hand some MTAs (notably common configurations of postfix) like to deliver mail to file the looks like mboxes. This can occasionaly cause problems where notmuch thinks a file is an mbox, but it really isn't (see patch 2/6). This series makes the corresponding check optional, while defaulting to preserving the current behaviour.