user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
From: ebiederm@xmission.com (Eric W. Biederman)
To: Eric Wong <e@80x24.org>
Cc: meta@public-inbox.org
Subject: Re: what should happen when mda sees multiple List-ID headers?
Date: Thu, 24 Oct 2019 22:30:08 -0500	[thread overview]
Message-ID: <87pniltscf.fsf@x220.int.ebiederm.org> (raw)
In-Reply-To: <20191025022800.GA29369@dcvr> (Eric Wong's message of "Fri, 25 Oct 2019 02:28:00 +0000")

Eric Wong <e@80x24.org> writes:

> Given my recent traumatic experience[*] around multiple
> From/To/Cc/Subject headers; I guess we should prepare for the
> possibility of multiple List-ID headers showing up in -mda.
>
> Right now, we handle the first one (and I'm updating -learn to
> support List-ID, too); but it's possible that multiple List-ID
> header can map to different inboxes, too...

So I looked at RFC2919 and it had something interesting to say.

- That when you receive a message from a mailing list only the
  List-ID set by the mailling list software should be present.

I think in practice that means if everything is RFC conformant
and working correctly you should never see a message with
multiple List-IDs.

Which leads us to what should we do with potentially buggy software.

Or possibly a creative list processor that realizes that handles
multiple lists, sees that a message is cross-posted and sends
out a single copy of it to the addresses that are subscribed to
both lists.



There are two reasonable things that can be done, and I suggest
we do them both.
- Print a warning. (To be deleted if this case turns out to be common).
- Deliver to all of the lists you have mailboxes for the List-IDs.

I think that would be the most robust response long term, and it
is roughly what my code in import_imap_mailbox so I don't see it
causing any problems at present.

In particular the delivery logic I have been running with for a long
time now is:

		my @dests = email_dest($config, $mime);
		for my $ibx (@dests) {
                	my $im = PublicInbox::InboxWritable->new($ibx);
                        die "no im" unless defined($im);
			$im->add($mime);
		}

So I can say at worst it is harmless to have code that handles multiple
List-ID headers.

Eric

  parent reply	other threads:[~2019-10-25  3:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-25  2:28 what should happen when mda sees multiple List-ID headers? Eric Wong
2019-10-25  2:56 ` Eric W. Biederman
2019-10-25  3:03   ` Eric Wong
2019-10-25  3:30     ` Eric W. Biederman
2019-10-25  3:30 ` Eric W. Biederman [this message]
2019-10-25 11:25   ` Eric Wong
2019-10-25 18:58     ` Eric W. Biederman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://public-inbox.org/README

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pniltscf.fsf@x220.int.ebiederm.org \
    --to=ebiederm@xmission.com \
    --cc=e@80x24.org \
    --cc=meta@public-inbox.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

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).