GNOME Bugzilla – Bug 733388
Messages sent by me are displayed twice
Last modified: 2021-07-05 13:26:52 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.
Created attachment 281166 [details] Contents of View Source for first message in screenshot
Created attachment 281167 [details] Contents of View Source for second message in screenshot
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?
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.
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.
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
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.
*** Bug 742106 has been marked as a duplicate of this bug. ***
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.
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.
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.
Yes, you are right. The duplicate was only in the Geary interface, not on the server.
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!
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
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.
(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.
(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.
(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.
(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.
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.