From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 aIIRLLEhB2JufAEAgWs5BA (envelope-from ) for ; Sat, 12 Feb 2022 03:55:45 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id oFLkKLEhB2J4yQAAauVa8A (envelope-from ) for ; Sat, 12 Feb 2022 03:55:45 +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 3CFA53ED6A for ; Sat, 12 Feb 2022 03:55:45 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 9CED85F722; Sat, 12 Feb 2022 02:55:42 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id ACC785F700 for ; Sat, 12 Feb 2022 02:55:40 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id F35DF5FBD2; Fri, 11 Feb 2022 21:55:39 -0500 (EST) Received: (nullmailer pid 1690518 invoked by uid 1000); Sat, 12 Feb 2022 02:55:17 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: WIP: filter out envelope headers in notmuch-insert. Date: Fri, 11 Feb 2022 22:55:00 -0400 Message-Id: <20220212025503.1690413-1-david@tethera.net> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Message-ID-Hash: LQCXK7VWWGEGNM5KSIQVA72XG4LZ576U X-Message-ID-Hash: LQCXK7VWWGEGNM5KSIQVA72XG4LZ576U 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=1644634545; 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=mXJib491fkod86IBBXzjwuiint/ZdIw7/vVd1FaTmsk=; b=TUr+Yjo9B+oDGP1J9H8lU/XP/5Wy3+9X8ogRMp7sV7h3VWJvdndHF/E087BX1OyKuXaYYR 5p4jYiYdBacIweOeUgkRQxnSXMwXO+slKEaLD5nl827BnrIsPvcIFuBeyb/nAeg5Qnc1tb gG4mibml2Y9oL1S69qH902FIamtwhvg8S4EkUw3UFJJTCZJ7cw+24Pf8xi2m4ZVLqwfAe+ okFYA0OJX5YS1pUivSFtUGzjILlncjzWvpXQ6zmwsd2/wbvVNpaIZf6gouwznkeEvQbhoL yIMgF1G1G5ijB6j8l9UownKzRZTNlFtXQzc7u+tump4UF4ZuIzJkh8pguumcTw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644634545; a=rsa-sha256; cv=none; b=YVL948oaCLlVoA18XKdKHJWCpMoqo7jFsL5AzcydSVPz7JRth//GsgaFnJLbBN1ykH0IYf G03zibYv/s9eeqEnIUmNHoMVsE4yyVT1c6jmXxpkptOlJeL0oedyY2Bb2AZ8sEW/AsmgWh D9Z5i/Y4wPKAB+iCx8gkUEPzQCr1eyjgJNZGe2/ON709pwy7cSIbXdhI8AjUq41gGewTQ4 8fRep4cHzfwsFx1N+mIB6mhKiI6oNzzW9lZF1/q+WWXNSjSm/iW+uZdaXluX60XtFwEAWz fyeKH/CsPoG8wSemFVhfRrbPbJwUaHe/6i+h0kStH7pxdg1LUFUs9M24oqgHjw== 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: 3CFA53ED6A X-Spam-Score: -1.34 X-Migadu-Scanner: scn1.migadu.com X-TUID: Q6CI7xguuRq9 This is a bit rough and ready, but before I fine tune it, I want to make sure the overall idea of stripping envelope headers in notmuch-insert makes sense. The first patch is duplicated from id:20220205195215.166213-2-david@tethera.net I thought about a more ambitious version that would replace any existing "Return-Path" headers, but it seems like significantly more work (the current code is not line based), and not obviously better. Or maybe I missed the wording in the RFCs that talks about how MDAs should behave here.