After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 750695 - Merge duplicate messages sent to self, or one or more mailing lists
Merge duplicate messages sent to self, or one or more mailing lists
Status: RESOLVED OBSOLETE
Product: geary
Classification: Other
Component: conversations
unspecified
Other Linux
: Normal normal
: 0.14.0
Assigned To: Geary Maintainers
Geary Maintainers
: 714568 791685 791847 (view as bug list)
Depends on:
Blocks: 714450 714760 764581
 
 
Reported: 2015-06-10 11:08 UTC by bob
Modified: 2021-07-05 13:24 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description bob 2015-06-10 11:08:28 UTC
When emailing a mailman mailing list, Geary will display both the message from the sent folder as well as the same email thats distributed by the mailman bouncer, displaying two messages with identical contents in the thread.
Comment 1 Robert Schroll 2015-06-10 23:06:22 UTC
Do these two messages have the same Message-Id?
Comment 2 bob 2015-06-11 02:07:27 UTC
Just checked and I can confirm they do
Comment 3 Robert Schroll 2015-06-11 20:40:21 UTC
Filtering on that might be a reasonable approach, then.
Comment 4 Michael Gratton 2016-10-15 06:32:47 UTC
This is also true if you email yourself directly.

We have two choices here - filter out the sent message, or the received message. In either case the conversation needs to be otherwise treated as if both messages are present, for listing, sorting, labelling, etc.

1. If we filter out the sent message, then when the message is received, it will be marked as unread, will re-appear in the INBOX, can be managed from there.

2. If we filter out the received message, then a lot of special cases need to be taken into account: How to show the unread state of the received message, any mailing-list-related headers it may have, etc.

So to my mind (1) is the way to go here. It might be worth introducing a notion of a logical message, that can be composed of one or more actual messages, to implement this. I'm kind of surprised Geary doesn't handle this already with its GMail label support however.
Comment 5 bob 2017-11-30 12:46:38 UTC
I thought I might add: This is also an issue if you're CC'd on a mailing list. It gets really out of hand if you send a message to a mailing list you're subscribed to with yourself CC'd (as git send-email does), as you end up with three copies of each message in the thread. Being CC'd in reply makes keeping track of what's happening in the thread especially challenging.
Comment 6 Michael Gratton 2017-12-18 07:05:34 UTC
Retitling to make this a bit easier to find.
Comment 7 Michael Gratton 2017-12-18 07:10:04 UTC
*** Bug 791685 has been marked as a duplicate of this bug. ***
Comment 8 Michael Catanzaro 2017-12-18 14:42:51 UTC
(In reply to Robert Schroll from comment #1)
> Do these two messages have the same Message-Id?

In my case, the messages *do* have the same Message-Id. I didn't know about that. That's great!
Comment 9 Michael Gratton 2018-01-09 23:54:17 UTC
This comment from Bug 713319 might be worth looking into:

> Updated by Tiago Quelhas 11 months ago
> 
> JWZ's algorithm [1] is worth taking a look for this, as it is the _de facto_
> message threading algorithm for MUAs. It threads primarily based on References
> /In-Reply-To headers, but also includes a fallback heuristic based on subject
> lines. Obviously, Geary doesn't really need to know the nesting order of
> messages within a conversation, so the full algorithm isn't required; but we
> could use the part concerned with identifying which messages belong to the
> same conversation.
> 
> [1] http://www.jwz.org/doc/threading.html
Comment 10 Michael Gratton 2018-01-11 03:20:57 UTC
Another use case from Bug 733388: Being CC'ed on a mailing list message, and getting one copy from the list and one directly, or receiving the same message sent by to two different mailing lists.
Comment 11 Michael Gratton 2018-04-12 05:00:10 UTC
*** Bug 791847 has been marked as a duplicate of this bug. ***
Comment 12 Michael Gratton 2018-06-14 03:18:54 UTC
*** Bug 714568 has been marked as a duplicate of this bug. ***
Comment 13 Michael Gratton 2018-06-26 04:47:12 UTC
Bump tickets to 0.14 that aren't going to make 0.13.
Comment 14 GNOME Infrastructure Team 2021-07-05 13:24:38 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/geary/-/issues/

Thank you for your understanding and your help.