From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.3 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qk1-x72d.google.com (mail-qk1-x72d.google.com [IPv6:2607:f8b0:4864:20::72d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id AC0411F4B4 for ; Wed, 23 Dec 2020 17:57:33 +0000 (UTC) Received: by mail-qk1-x72d.google.com with SMTP id 143so43824qke.10 for ; Wed, 23 Dec 2020 09:57:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=KwvbRXcOnEl2BwK6jqKfQxkvb+qoCGv8oLBhkXX7eqE=; b=ezjco9LElW/IDCoKrdkueTXe/XY/fCYdLb9hZARElUp55rO3KynzNRVvaxVchEqLFL 2nbvUwD1dbhP+fV2d40lIBcSJEWU6vlyxrCa8f3iSopXu857KR5YpiD548ySthpQ5pL9 ereGLzdUI45BbGvPo58/zXknwhfUwBVxz+cCA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=KwvbRXcOnEl2BwK6jqKfQxkvb+qoCGv8oLBhkXX7eqE=; b=X0OXNbKMZB6gl5vhksgXoa6omb7dMEezFl3VFtspyddQww1DrJAf9OUMsaBcYC6Qo7 K0kgY6uqUasHuUzOrsQIIGSrQ4YtGPx/T5zqdBy4QormQdjUtfZ+KvX0M8GqdR4Alq6K r+bHk6eQrGvnr7X1EYRSjk5ECrco/zCmjbs+ZvIp5ZMtzzSxVm7bFiyyNs3NgpVWnFVS JzWKwDYvKWDtmxybbFmcLAVp6Y9nqUKmj2CSSnnUUMOfV8UjvLkTDHoAxDLvmrNhlJBb NV/hIZxkjZRR+QkcISRm0vrmgw+rarZXOdszcSSjqQdC1e2KmBcxAQmyv2Oazk4x0Go1 4VxQ== X-Gm-Message-State: AOAM531AcuSna6oCP3XFuWYVutgb0qQLfR4mQeX54Dnth6kjk8qiSPa8 0lkuYLHyic/DegJG/J7AB9iLtr7Gre8/keWS X-Google-Smtp-Source: ABdhPJy7i40/rB5bULggHpDzHCuaofyFy0jy4FQRRDGHrTnc2PtjdAP3yfk3c421zZMHZ5LX9unO1g== X-Received: by 2002:a05:620a:1206:: with SMTP id u6mr11693032qkj.209.1608746252243; Wed, 23 Dec 2020 09:57:32 -0800 (PST) Received: from chatter.i7.local ([89.36.78.230]) by smtp.gmail.com with ESMTPSA id p13sm3174964qkg.80.2020.12.23.09.57.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Dec 2020 09:57:31 -0800 (PST) Date: Wed, 23 Dec 2020 12:57:29 -0500 From: Konstantin Ryabitsev To: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= Cc: meta@public-inbox.org Subject: Re: About header filtering Message-ID: <20201223175729.mcd3zfq6sc4wae66@chatter.i7.local> Mail-Followup-To: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , meta@public-inbox.org References: <20201222073704.u7hacjk5m7mpuc52@pengutronix.de> <20201222162828.wir7sfelqmy2mzrr@chatter.i7.local> <20201222222118.i4bioeo7l6iuf3pk@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="7pzpxdzcsq6hqvr2" Content-Disposition: inline In-Reply-To: <20201222222118.i4bioeo7l6iuf3pk@pengutronix.de> List-Id: --7pzpxdzcsq6hqvr2 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 22, 2020 at 11:21:18PM +0100, Uwe Kleine-K=C3=B6nig wrote: > > 2. the goal of lore.kernel.org is maximum transparency, so we include > > everything that our own systems add to the headers in an attempt to = show > > that "there's nothing up our sleeves" > >=20 > > > I could handcraft a preprocessor[2] but I assume that a solution in > > > public-inbox itself would find some users?! > >=20 > > I don't know if this should be part of public-inbox -- a simple procmail > > script would work. I know procmail isn't very actively developed these = days, > > but it's also extremely robust and handles almost anything you can thro= w at > > it, which is an important advantage when it comes to a format like emai= l. >=20 > Procmail doesn't help here (unless I miss something). Well, it allows to > call a filter, but doesn't filter itself. Currently I experiment with > formail (which is called by procmail) but formail cannot throw away > selected Received lines only. Right, that's what I meant -- you pipe through procmail to define any additional filtering to be done based on match logic (whether with formail = or with any other command written for this purpose). BTW, my hope is that, eventually, we'll stop doing archiving on our own and will merely mirror public-inbox archives made available by actual mailing list providers. I know vger folks have been looking at this, but I'm not sure where this fits in their priorities. This will accomplish the same thing -- SMTP headers will end at the mailing list host. -K --7pzpxdzcsq6hqvr2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQR2vl2yUnHhSB5njDW2xBzjVmSZbAUCX+OFCQAKCRC2xBzjVmSZ bG9EAP9uPzBTVSlkEyd+YvwS6ock/yyyoc0Ccb57NQteHzA5nQEA3I8X3qMf1pYl s8EsLH5/nup8ncTANXl1+8AqZlzhNgc= =be1/ -----END PGP SIGNATURE----- --7pzpxdzcsq6hqvr2--