unofficial mirror of meta@public-inbox.org
 help / color / mirror / Atom feed
* About header filtering
@ 2020-12-22  7:37 Uwe Kleine-König
  2020-12-22 16:28 ` Konstantin Ryabitsev
  0 siblings, 1 reply; 5+ messages in thread
From: Uwe Kleine-König @ 2020-12-22  7:37 UTC (permalink / raw)
  To: meta; +Cc: Konstantin Ryabitsev

[-- Attachment #1: Type: text/plain, Size: 2088 bytes --]

Hello,

I'm trying to setup a public-inbox instance to archive some mailing
lists using a regular subscription (so I'm not collecting the mails
directly at the mailing list address, but rely on the mailing list
software (here: mailman) to forward to the archiver).

One thing I want to have is that some headers that are relevant for the
path between the mailing list host and the subscribed mail account only
are filtered out. That's things like:

	Received: from $mailinglistserver ([2001:....]) by
		$publicinboxmachine with esmtp (Exim 4.92)
		(envelope-from <listname-bounces+something@mailinglistdomain>) id
		23487275432 for $publicinboxaccount; Fri, 18 Dec 2020 15:48:54 +0100
	Envelope-to: $publicinboxaccount
	Return-path: <listname-bounces+something@mailinglistdomain>
	Errors-To: listname-bounces+something@mailinglistdomain

I found that Konstantin Ryabitsev's tool to prepare an initial archive
from an already existing mailing list[1] filters some of these out, but
the instance on kernel.org has some of these details, too. (See for
example
https://lore.kernel.org/lkml/20201013082132.661993-1-u.kleine-koenig@pengutronix.de/raw;
there are Return-Path: and also some Received: headers that I consider
not-so-nice as they were added after the mail was processed by the
mailing list tool on vger.kernel.org.)

Is it considerd bad to filter these out? Or is it just that nobody
wanted this kind of cleanliness before in such a setup?

I could handcraft a preprocessor[2] but I assume that a solution in
public-inbox itself would find some users?!

Best regards
Uwe

[1] https://git.kernel.org/pub/scm/linux/kernel/git/mricon/korg-helpers.git/plain/list-archive-maker.py
[2] something like
	formail -I Envelope-to -I Return-path -I Errors-To
    but filtering Received: is a bit harder if you want to keep the lines
    describing the path from the sender to the mailing list.
-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-12-23 17:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-22  7:37 About header filtering Uwe Kleine-König
2020-12-22 16:28 ` Konstantin Ryabitsev
2020-12-22 22:21   ` Uwe Kleine-König
2020-12-22 23:11     ` Eric Wong
2020-12-23 17:57     ` Konstantin Ryabitsev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).