From mboxrd@z Thu Jan 1 00:00:00 1970 From: ehabkost@raisama.net (Eduardo Habkost) Date: Wed, 26 Nov 2008 19:35:23 -0200 Subject: [sup-talk] Handling of messages appearing on multiple sources In-Reply-To: <1227647755-sup-3231@ausone.local> References: <1227547347-sup-6279@blackpad> <1227647755-sup-3231@ausone.local> Message-ID: <20081126213523.GB4628@blackpad> On Tue, Nov 25, 2008 at 10:19:38PM +0100, Nicolas Pouillard wrote: > Excerpts from Eduardo Habkost's message of Mon Nov 24 18:31:01 +0100 2008: > > > > Hi, > Hi, > > > Currently, what is the expected behavior when a message appear on multiple > > sources? Sometimes messages are sent to many different mailing lists > > and end up on different mailboxes, and I would like those messages to > > have the labels from both sources applied to them. Is it possible? > > > > It would be nice if sup-tweak-labels and other utilities that deal with > > messages on a per-source basis were aware that the message appeared on > > multiple sources, also. > > If it's the same message id, it should be shared. When testing it here, I got the following: Source 1 is the lkml source. Source 2 is the kvm-devel source. Some messages are posted to both mailing lists and end up on both sources. A message appearing only on kvm-devel is imported normally: Adding message maildir:/home/ehabkost/mail/kvm-devel-l/#12277020930025949 with state {kvm-devel, unread, inbox} A message appearing on both sources is imported this way: Updating message maildir:/home/ehabkost/mail/kvm-devel-l/#12277021040004976, source 1 => 2, offset 12277036400004673 => 12277021040004976, state {lkml, unread, inbox} => {lkml, unread, inbox} On this case, I would like the kvm-devel label to be applied to the message, also. I would even argue that adding the tags configured for both sources should be the default, but I don't know if there are users relying on the current behavior, today. What do you think? Handling the inbox label may be more complicated to implement properly (especially if some of the sources have the 'archive' flag set and some don't). But as an user, I expect that a message appearing on both a non-inbox source and an inbox source would get into the inbox. The problem would be handling a message appearing on an inbox source after the user have archived it. On this case, the user may expect the message to not appear on the inbox again (I am not sure what would be more intuitive). Additionally, I think it would be nice if sup were aware of when the message appears multiple times on the sources, instead of rewriting the source and offset fields. Most times the user doesn't need to be aware there are multiple versions of a message, but when checking message headers or other small details of messages coming from different paths, it would be useful to have both versions available. -- Eduardo