From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id /YDwLdUMC2IZSQEAgWs5BA (envelope-from ) for ; Tue, 15 Feb 2022 03:15:49 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id KHagJdUMC2KkHAAAG6o9tA (envelope-from ) for ; Tue, 15 Feb 2022 03:15:49 +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 F10B7FEF1 for ; Tue, 15 Feb 2022 03:15:48 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 4B6435F6ED; Tue, 15 Feb 2022 02:15:45 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 2BC055F402 for ; Tue, 15 Feb 2022 02:15:43 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id CC0A25FBD2; Mon, 14 Feb 2022 21:15:41 -0500 (EST) Received: (nullmailer pid 3506599 invoked by uid 1000); Tue, 15 Feb 2022 02:15:25 -0000 From: David Bremner To: NeilBrown Subject: Re: WIP: filter out envelope headers in notmuch-insert. In-Reply-To: <164488761286.17471.15404760359666744352@noble.neil.brown.name> References: <20220212025503.1690413-1-david@tethera.net> <164481580222.17471.7090984749734305531@noble.neil.brown.name> <87h791wvdh.fsf@tethera.net> <164487743989.17471.15302582357377741383@noble.neil.brown.name> <87mtituht3.fsf@tethera.net> <164488761286.17471.15404760359666744352@noble.neil.brown.name> Date: Mon, 14 Feb 2022 22:15:25 -0400 Message-ID: <87k0dwvps2.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: JLR5DONKKT3JQMQYGXJWZZ4PSAHJEH5C X-Message-ID-Hash: JLR5DONKKT3JQMQYGXJWZZ4PSAHJEH5C X-MailFrom: david@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 CC: notmuch@notmuchmail.org 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=1644891349; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc: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=M37NYBVS0yWNASX/ew/1+0GtSdtKwgCYfEh2V0Qp44o=; b=bfFhKDKeNPXo44KpKUvVC1OHE71AHvft48tK/V9ntEHWq9aHQBn3jAWDQ14pXjJCioUNno r0Iiok2ErwGHpLlL3lbn7TrdwrrXCBWU28cqzOEGBC+6EL7BqwnHll0bbTJwfww8XAyzSF +/PpVN68dbQCbbwX/9vXLaT0XRfZy5xD0r53A+NfKOdFl1A9IHrslRg2+BBgOMp2tKJYfq WLyUVxbenAYRHdXO8mQI0P/UdGlXByr5//81ga2U7iEudmqXi4VkglrcsiQLqbTMr1CURb i7ls4FQaThlnY6uTF7Zn5HNCymGEpZW+E/njmh3pPtghiJ/JmOydOLGosGEiTg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644891349; a=rsa-sha256; cv=none; b=WN843JMDfGKi5tyORcK91HUYB17xklOIwBrMctW0od5w3nM7bFRmMTgH1Q/HbUvm7vy/pA baPYj2gGTqvvvvqqbKTDk/wzV1MTame1a+UKTpfj5SZX/xWgolxZU5HXjDcKZHDAeOonCu j8B6YngteXWEQnrcNFwl1OFMdlkLr5tntNqsvNoO0YKy3hNFU7QVfYu+dqQ6grl0mmhIMl vN0BlR3dO4uZ/eoSSLJ8wxc6vU283Ts8Br1YQvZUmjh/B64xIWJh8Ga5XKaZ5kVpHubu7E SbnPT6CTQcK8KmWsZl/9+od4C12LmMaqjSxe0ml8waElNE3+nowo/OUrh62QZQ== 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: -3.35 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: F10B7FEF1 X-Spam-Score: -3.35 X-Migadu-Scanner: scn0.migadu.com X-TUID: gfUUaZb7T9Qn NeilBrown writes: > And on digging into postfix a bit, it seem that when forwarding to a > program, it *doesn't* quote other "From " lines in the email, so > splitting up the input would break things. I wonder if that is a bug... > the documentation is clear on the details of delivering to a program It's a least partly "mbox is trainwreck, and they probably don't really want to do mbox". Imagine a "From " line inside a signed part. But I really don't know the intent of including a "From " line. > So it seems... In the case of postfix the sender information is provided > both in "From " and "Return-Path:", so just stripping "From " would be > safe. It is hard to argue against the extra caution of retaining the > from line in an "X-Envolope-from" though. > > Thanks, > NeilBrown Thanks for thinking about these design issues with me. d