From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id CCGYKg138V+0CgAA0tVLHw (envelope-from ) for ; Sun, 03 Jan 2021 07:49:33 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id cH2CJg138V/THwAA1q6Kng (envelope-from ) for ; Sun, 03 Jan 2021 07:49:33 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A8A149403D5 for ; Sun, 3 Jan 2021 07:49:30 +0000 (UTC) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 42A7929D32; Sun, 3 Jan 2021 02:49:21 -0500 (EST) Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [185.185.170.37]) by mail.notmuchmail.org (Postfix) with ESMTPS id 32C6B29D29 for ; Sun, 3 Jan 2021 02:49:19 -0500 (EST) Received: from mithlond (mobile-access-bcee0a-182.dhcp.inet.fi [188.238.10.182]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: tlikonen) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 40DEE1B00162; Sun, 3 Jan 2021 09:49:03 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1609660143; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=kI27giNYTmsR3LCuZ+uz47Ic9KiGkuy1SqFyLNJfgq8=; b=HQGcvfgeyVAwioIbd5AQngAhuH2hupoD6wjjZspQEIyfWIv2wyLhafV9vvjkBqdIfz90Wi jak4JTRDMXYNoGTkemk81po7kTycjTJRIJq8PLFKFvLQC9K9pwh5gaLOolrIFAFZaTtmdi j4vvcG/BMgEC/4k/zNYtuua7x7t6TMh7tXEFj16MiQasP+fXV/UI6XXW3l/5nOlogFKlcQ lNUHnZyaGlydxaJ+ixP530GKzs/PgT8Dt3M4QVfZk1lGkx2PQlf885e3bwLqzBAaIZYNzH LvqubaTlc4IgDviydWrF9E41wr5fGX0unbSfvwKPJKfCXFUXdxi8pmwfxX1oHg== From: Teemu Likonen To: Daniel Kahn Gillmor , Notmuch Mail Subject: Re: filtering headers from forwarded messages In-Reply-To: <87k0sxtxb8.fsf@fifthhorseman.net> References: <877e2qbzms.fsf@fifthhorseman.net> <87eewmlzqs.fsf@iki.fi> <875zhm6kch.fsf@fifthhorseman.net> <87pnfjgnku.fsf@fifthhorseman.net> <874kkbulza.fsf@fifthhorseman.net> <87r1n7d11x.fsf@iki.fi> <87k0sxtxb8.fsf@fifthhorseman.net> Date: Sun, 03 Jan 2021 09:48:56 +0200 Message-ID: <87turylatz.fsf@iki.fi> MIME-Version: 1.0 ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1609660143; a=rsa-sha256; cv=none; b=Sj7Ea0DPItpFPW/7acpEYfHmOLCiEBRI5+SacS02WYWbr7dn6Px2R+/43vgZXN7kWFF+gd XYqFzinkp/3j+u6gv0mPUkkBCs+AR+q5FddFQ91lGaWYhQiVOqgZ0CoW6fv4PdosJyL8Mb +wtv3tST60iQ0TNABpdK6MDeK/pRylY7qQ73df9fizPyr1WhF/Svoz5J6yq1QuY7kRMh5E AD5hI4S7mE6KrAdT0FquDDVSWdjGWWlc2bY7OjAOdlr6mDUFiPnHuquSjvkbUQx63etUnH ScwChbpo7q0DqH3PAL41uXJRb7ALPb+6Hzz3xnSPxms+6LTX0nuk16o/AL0P7g== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=tlikonen smtp.mailfrom=tlikonen@iki.fi ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1609660143; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=kI27giNYTmsR3LCuZ+uz47Ic9KiGkuy1SqFyLNJfgq8=; b=LYp1EpRu/ZreXGCOdrUOlAnAjY5WngCyVM1jEttvmES2+QEFgYsdJdZM8fROOTONum98BM iGMaZRpHd0LvlJXue1OT2L9tmcFu1I07cdaBrnX5IOKtfPXZb+l60z+OgOaCysDNQD+Zd1 etiKNtJwxZvPwEEshfcdxUxZ5Np8xhM/Vz0PPH3q2jIKZ+DgSRVtAMHDnRt4GCR1A4r3mu PIE7g+C+WtjxhUCEvyZWDxwYQtkLD74kDt4UF6FNKrCnbg/dcVzkkNa9kWifwnsreLb2Pp 4qATlRwtiSBoY6sq6PkZT5u1qyyRPqVN5vAH2yor+abnHyt2XYe5Z8yyppY0kQ== Message-ID-Hash: JJD4XDMSF46SDJHMWGXKOKA3SQLNV2RH X-Message-ID-Hash: JJD4XDMSF46SDJHMWGXKOKA3SQLNV2RH X-MailFrom: tlikonen@iki.fi 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; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============5662660296102827946==" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 0.34 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=iki.fi header.s=lahtoruutu header.b=HQGcvfge; arc=reject (signature check failed: fail, {[1] = sig:iki.fi:reject}); dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: A8A149403D5 X-Spam-Score: 0.34 X-Migadu-Scanner: scn1.migadu.com X-TUID: QCF+/r/gcz/K --===============5662660296102827946== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable * 2020-12-31 17:39:23-0500, Daniel Kahn Gillmor wrote: > On Wed 2020-12-30 12:46:02 +0200, Teemu Likonen wrote: >> What about forwarding a message as MIME part which is just "text/plain" >> (and not "message/rfc822")? > > This might be useful for some people, but doesn't really satisfy my > goals. When i want to forward a message, i want to forward the whole > message -- multipart, with attachments, etc. My goal when forwarding is > to *not* mangle the message, but rather to supply it to the new > recipient in a parseable way. I just don't think that most recipients > need to have access to (for example) the headers that are added by all > the mail transport agents along my receipt path. I want them filtered > for privacy, which i think isn't unreasonable. OK, that is reasonable. Somehow I thought that you wanted a pretty-printed message (old inline style) but still valid email form. But yes, it would be nice to filter headers like "Received", maybe "DKIM-Signature" and various unofficial headers starting with "X-". For a quick first step I would probably try running "C-u M-|" (shell-command-on-region) in Emacs and pipe the forwarded message through command like this: formail -I Received -I DKIM-Signature -I X-Whatever Probably after that I would integrate that shell command call in one Emacs command and then implement the functionality in Emacs Lisp. But so far I haven't cared enough. =2D-=20 /// Teemu Likonen - .-.. https://www.iki.fi/tlikonen/ // OpenPGP: 4E1055DC84E9DFF613D78557719D69D324539450 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIYEARYIAC4WIQTJW2wqtelxC1gHdbitnXWr7pTCcwUCX/F26BAcdGxpa29uZW5A aWtpLmZpAAoJEK2ddavulMJzkisA/R5bj/eLqaOYtxRI0REDir7A9338e15OfvEP i9spblDeAP9frXVqxP8P+Sa0HF2B/KquYICybJgoz4VW8pDibOp3Cw== =zo+1 -----END PGP SIGNATURE----- --=-=-=-- --===============5662660296102827946== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============5662660296102827946==--