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 733388 - Messages sent by me are displayed twice
Messages sent by me are displayed twice
Status: RESOLVED OBSOLETE
Product: geary
Classification: Other
Component: conversations
0.6.x
Other Linux
: Normal minor
: 0.14.0
Assigned To: Geary Maintainers
Geary Maintainers
: 742106 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2014-07-19 02:49 UTC by Aram J. Agajanian
Modified: 2021-07-05 13:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot of geary (224.04 KB, image/png)
2014-07-19 02:49 UTC, Aram J. Agajanian
Details
Contents of View Source for first message in screenshot (497 bytes, text/plain)
2014-07-19 02:54 UTC, Aram J. Agajanian
Details
Contents of View Source for second message in screenshot (2.39 KB, text/plain)
2014-07-19 02:55 UTC, Aram J. Agajanian
Details
Screenshot of a conversation where the message appears twice (251.49 KB, image/png)
2014-07-24 22:54 UTC, Aram J. Agajanian
Details

Description Aram J. Agajanian 2014-07-19 02:49:51 UTC
Created attachment 281165 [details]
Screenshot of geary

When an email message sent by me is displayed, it seems to be displayed twice.

I am using geary 0.6.1.
Comment 1 Aram J. Agajanian 2014-07-19 02:54:22 UTC
Created attachment 281166 [details]
Contents of View Source for first message in screenshot
Comment 2 Aram J. Agajanian 2014-07-19 02:55:00 UTC
Created attachment 281167 [details]
Contents of View Source for second message in screenshot
Comment 3 Jim Nelson 2014-07-24 21:08:29 UTC
The shorter one is a saved draft.  The second is the actual sent mail.

Geary should send the saved draft to the Trash after you send the message.  Messages in the Trash aren't listed in conversations.  However, there is a known bug where some times Geary won't do this (a timing hole).  Does this happen often for you?
Comment 4 Aram J. Agajanian 2014-07-24 22:54:48 UTC
Created attachment 281647 [details]
Screenshot of a conversation where the message appears twice

I haven't been posting on mailing lists very often lately.  I did have a conversation recently.  I sent seven messages and they are all displayed twice.

I'm not convinced that this is a Geary timing issue because one of the messages that is displayed twice in that conversation was sent with Squirrelmail.
Comment 5 Aram J. Agajanian 2014-08-01 01:16:00 UTC
It seems like opening the Sent folder causes the message to be displayed twice in the conversation in all folders.

Steps to reproduce:

1) Start Geary.  The Inbox folder should be selected in the Folder List.

2) Send a test email message to myself.

3) Wait for test email message to arrive in the Inbox folder.

4) Select the test email message in Conversation List.  Note that the test message only appears once.

5) Select the Sent Mail folder in Folder List.  The test email message appears twice in the conversation.

6) Select the Inbox folder in the Folder List.  The test email message now also appears twice in the conversation in the Inbox folder.

7) Quit and restart Geary.

8) The test email message still appears twice in the conversation in the Inbox folder.
Comment 6 Jim Nelson 2014-08-02 00:36:53 UTC
Ah -- now I see.  I suspect what you're seeing is that Geary is automatically saving the send message in your Sent Mail folder and the server is adding it as well.  This is fixed with bug #726728 which allows for you to turn off saving the message to the Sent Mail folder.  Then, only your server will do so, and you'll only have one copy.  This feature will be available in Geary 0.8, to be released later this year.

If you want to see if this fixes your problem, you can run Geary from git master, our Daily Build PPA (if you're using Ubuntu or a derivative), or from our pre-release tarballs (Geary 0.7).  See the Geary home page for more information:

https://wiki.gnome.org/Apps/Geary
Comment 7 Aram J. Agajanian 2014-08-02 01:42:19 UTC
I don't think that this is the same issue as in bug #726728.  I am using an IMAP service (dovecot).  I believe that there isn't anything that would save to the Sent folder other than Geary.

It seems like bug #726728 has to do with saving drafts.  

I have built the current geary-0.7.0.tar.xz.  When I disable the the "Save sent mail" setting, what happens is that outgoing messages don't get saved at all to the Sent folder.  Also, disabling the "Save drafts on server" setting doesn't seem to help either.

It seems like, when I click on the Sent folder, the message in the Sent folder gets correlated with the identical message in the Inbox (or other folder).  I think that, instead, it should be recognized that the messages are identical and should only be displayed once.
Comment 8 Jim Nelson 2015-01-07 20:30:46 UTC
*** Bug 742106 has been marked as a duplicate of this bug. ***
Comment 9 Michael Gratton 2016-10-15 06:37:40 UTC
Hi Aram, are you still having this problem?

If so, does this only happen when you send yourself a message, either directly or via a mailing list? If so, this might actually be Bug 750695.
Comment 10 Artem 2017-10-12 12:26:33 UTC
I also had this issue several months ago (spring/summer 2017) for one or two messages sent to the external (not mine) mailbox. The issue has not occurred since that time.
Comment 11 Michael Gratton 2017-10-26 06:58:28 UTC
Hmm, curious. If it happens again, can you try connecting with a different mail client (mobile app, Thunderbird, etc) and see if the duplicate message actually actually appears on the server?

I have a feeling this might be a synchronisation issue that occasionally causes duplicates in the local database - so this could be caused by some of the issues that have been uncovered and partly fixed in Bug 713530.
Comment 12 Artem 2017-11-06 17:09:20 UTC
Yes, you are right. The duplicate was only in the Geary interface, not on the server.
Comment 13 Michael Gratton 2017-12-18 07:25:41 UTC
I actually wonder then if this is actually related to Bug 777173, but where the drafts were getting added to the conversation somehow.

If you still have those messages (or another example of the issue), can you please try the following using Geary 0.12:

Make sure Geary isn't running, then open the database for the account using this command, but replacing ACCOUNT_ID as needed:

> sqlite3 ~/.local/share/geary/ACCOUNT_ID/geary.db

Then run the following query at the sqlite prompt:

> SELECT mt.id, ft.name, mlt.ordering FROM MessageTable AS mt LEFT OUTER JOIN MessageLocationTable AS mlt, FolderTable ft ON mt.id = mlt.message_id AND mlt.folder_id = ft.id WHERE mt.header LIKE '%Message-Id: <1405734058.1048.1@mail.optimum.net>%';

Or replace the "1405734058.1048.1@mail.optimum.net" part with the Message-Id from another equivalent message displaying the problem.

Thanks heaps!
Comment 14 Michael Catanzaro 2017-12-18 15:21:28 UTC
It returns both of the duplicate mails:

sqlite> SELECT mt.id, ft.name, mlt.ordering FROM MessageTable AS mt LEFT OUTER JOIN MessageLocationTable AS mlt, FolderTable ft ON mt.id = mlt.message_id AND mlt.folder_id = ft.id WHERE mt.header LIKE '%Message-Id: <CAGWsdOhAA=SmnOB=kvMkj_mrij=2J0KNmTXN8m8J0Kmcw_Oh1Q@mail.gmail.com>%';
1709|GNOME Desktop Development|91
1710|GNOME Desktop Development|92
Comment 15 Artem 2017-12-18 15:33:17 UTC
In my case, at least at the current version of Geary (0.12.0), the duplicated messages in the Sent are disappeared in several dozen seconds (seems after the synchronization of the Sent folder). However, often such messages are remained in both Sent and Drafts folders.
Comment 16 Michael Gratton 2018-01-10 00:01:28 UTC
(In reply to Michael Catanzaro from comment #14)
> It returns both of the duplicate mails:
> 
> sqlite> SELECT mt.id, ft.name, mlt.ordering FROM MessageTable AS mt LEFT
> OUTER JOIN MessageLocationTable AS mlt, FolderTable ft ON mt.id =
> mlt.message_id AND mlt.folder_id = ft.id WHERE mt.header LIKE '%Message-Id:
> <CAGWsdOhAA=SmnOB=kvMkj_mrij=2J0KNmTXN8m8J0Kmcw_Oh1Q@mail.gmail.com>%';
> 1709|GNOME Desktop Development|91
> 1710|GNOME Desktop Development|92

Michael, further, is one of those your sent mail and/or a draft, while the other the message received from the list? If so that's definitely Bug 750695.
Comment 17 Michael Gratton 2018-01-10 00:09:55 UTC
(In reply to Artem from comment #15)
> In my case, at least at the current version of Geary (0.12.0), the
> duplicated messages in the Sent are disappeared in several dozen seconds
> (seems after the synchronization of the Sent folder). However, often such
> messages are remained in both Sent and Drafts folders.

Okay, if possible, can you try building Geary from git using the `wip/778276-better-flag-updates` branch and see if that helps the synchronisation issue at all? Let me know if you need a hand with that.
Comment 18 Michael Catanzaro 2018-01-10 03:34:27 UTC
(In reply to Michael Gratton from comment #16)
> Michael, further, is one of those your sent mail and/or a draft, while the
> other the message received from the list? If so that's definitely Bug 750695.

I'm sure bug #750695 is a problem as well, but no, this is broken even in the absence of any sent mail and drafts. It happens, for example:

 * If I receive a mailing list message that I am also CCed on.
 * If I receive the same message from multiple mailing lists.

In both cases, the messages show up twice in a row in the same conversation.
Comment 19 Michael Gratton 2018-01-11 03:18:53 UTC
(In reply to Michael Catanzaro from comment #18)
> (In reply to Michael Gratton from comment #16)
> > Michael, further, is one of those your sent mail and/or a draft, while the
> > other the message received from the list? If so that's definitely Bug 750695.
> 
> I'm sure bug #750695 is a problem as well, but no, this is broken even in
> the absence of any sent mail and drafts. It happens, for example:
> 
>  * If I receive a mailing list message that I am also CCed on.
>  * If I receive the same message from multiple mailing lists.
> 
> In both cases, the messages show up twice in a row in the same conversation.

Ah okay, I'll put that down as a use case in that bug then as well.
Comment 20 GNOME Infrastructure Team 2021-07-05 13:26:52 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.