* what should happen when mda sees multiple List-ID headers?
@ 2019-10-25 2:28 Eric Wong
2019-10-25 2:56 ` Eric W. Biederman
2019-10-25 3:30 ` Eric W. Biederman
0 siblings, 2 replies; 7+ messages in thread
From: Eric Wong @ 2019-10-25 2:28 UTC (permalink / raw)
To: meta; +Cc: Eric W. Biederman
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...
[*] https://public-inbox.org/meta/20191016211415.GA6084@dcvr/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: what should happen when mda sees multiple List-ID headers?
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
1 sibling, 1 reply; 7+ messages in thread
From: Eric W. Biederman @ 2019-10-25 2:56 UTC (permalink / raw)
To: Eric Wong; +Cc: meta
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: what should happen when mda sees multiple List-ID headers?
2019-10-25 2:56 ` Eric W. Biederman
@ 2019-10-25 3:03 ` Eric Wong
2019-10-25 3:30 ` Eric W. Biederman
0 siblings, 1 reply; 7+ messages in thread
From: Eric Wong @ 2019-10-25 3:03 UTC (permalink / raw)
To: Eric W. Biederman; +Cc: meta
"Eric W. Biederman" <ebiederm@xmission.com> wrote:
... nothing? Just checked my mail server and it's not out of
space and I'm not seeing any errors in logs. Anyways I'm
offline for a bit and will be back (hopefully :x)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: what should happen when mda sees multiple List-ID headers?
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:30 ` Eric W. Biederman
2019-10-25 11:25 ` Eric Wong
1 sibling, 1 reply; 7+ messages in thread
From: Eric W. Biederman @ 2019-10-25 3:30 UTC (permalink / raw)
To: Eric Wong; +Cc: meta
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: what should happen when mda sees multiple List-ID headers?
2019-10-25 3:03 ` Eric Wong
@ 2019-10-25 3:30 ` Eric W. Biederman
0 siblings, 0 replies; 7+ messages in thread
From: Eric W. Biederman @ 2019-10-25 3:30 UTC (permalink / raw)
To: Eric Wong; +Cc: meta
Eric Wong <e@80x24.org> writes:
> "Eric W. Biederman" <ebiederm@xmission.com> wrote:
>
> ... nothing? Just checked my mail server and it's not out of
> space and I'm not seeing any errors in logs. Anyways I'm
> offline for a bit and will be back (hopefully :x)
Apologies, I accidentally hit send before I wrote my reply.
Eric
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: what should happen when mda sees multiple List-ID headers?
2019-10-25 3:30 ` Eric W. Biederman
@ 2019-10-25 11:25 ` Eric Wong
2019-10-25 18:58 ` Eric W. Biederman
0 siblings, 1 reply; 7+ messages in thread
From: Eric Wong @ 2019-10-25 11:25 UTC (permalink / raw)
To: Eric W. Biederman; +Cc: meta
"Eric W. Biederman" <ebiederm@xmission.com> wrote:
> 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.
Thanks, I was leaning towards delivering to all matches, too.
I didn't think to print a warning; but I guess -mda and -learn
should have -v and -q switches to be more/less quiet...
> 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.
<snip>
> So I can say at worst it is harmless to have code that handles multiple
> List-ID headers.
Agreed.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: what should happen when mda sees multiple List-ID headers?
2019-10-25 11:25 ` Eric Wong
@ 2019-10-25 18:58 ` Eric W. Biederman
0 siblings, 0 replies; 7+ messages in thread
From: Eric W. Biederman @ 2019-10-25 18:58 UTC (permalink / raw)
To: Eric Wong; +Cc: meta
Eric Wong <e@80x24.org> writes:
> "Eric W. Biederman" <ebiederm@xmission.com> wrote:
>> 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.
>
> Thanks, I was leaning towards delivering to all matches, too.
>
> I didn't think to print a warning; but I guess -mda and -learn
> should have -v and -q switches to be more/less quiet...
I was thinking a warning in the sense of. We don't think this should
happen please let the developers know if it does so we can confirm
that this case is being handled correctly.
>> 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.
>
> <snip>
>
>> So I can say at worst it is harmless to have code that handles multiple
>> List-ID headers.
>
> Agreed.
Eric
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2019-10-25 18:59 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2019-10-25 11:25 ` Eric Wong
2019-10-25 18:58 ` Eric W. Biederman
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).