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 748548 - Geary detects new messages, but does not download them unless restarted
Geary detects new messages, but does not download them unless restarted
Status: RESOLVED INCOMPLETE
Product: geary
Classification: Other
Component: general
0.10.x
Other Linux
: Normal normal
: ---
Assigned To: Geary Maintainers
Geary Maintainers
: 748547 752155 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2015-04-27 18:50 UTC by David.Mulder
Modified: 2018-02-07 06:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
debug (8.10 KB, text/plain)
2015-04-27 18:51 UTC, David.Mulder
Details

Description David.Mulder 2015-04-27 18:50:50 UTC
Next to my inbox, I have the little icon showing that their are new messages, but they don't show up in my conversation view unless I restart geary.

I'm using IMAP + davmail (for owa ews).

I've got debug from when this happens. This consistently broken. No messages load until I've restarted geary.
Comment 1 David.Mulder 2015-04-27 18:51:25 UTC
Created attachment 302474 [details]
debug
Comment 2 David.Mulder 2015-04-27 18:53:25 UTC
This looks similar to bug 714779. Not sure if they're related.
Comment 3 Robert Schroll 2015-04-28 16:10:44 UTC
*** Bug 748547 has been marked as a duplicate of this bug. ***
Comment 4 Robert Schroll 2015-04-28 16:14:23 UTC
I'm not sure if we've ever had Geary working with davmail.  Bug 714778 asks for support, but I'm not sure if that means connecting to davmail or integrating it within Geary.

Do you get an indication of new messages in the conversation list (the middle pane of the three pane view)?
Comment 5 David.Mulder 2015-04-28 16:17:08 UTC
I see the new mail symbol (the little numbers) in the far left pane, but nothing in the middle pane. I also don't get the new mail popup message. Everything comes through just fine as soon as I restart geary though.
Comment 6 David.Mulder 2015-04-28 16:20:25 UTC
Well, regarding Bug 714778, I'd say it's clear that geary is MOSTLY working with davmail already. I'm using it to get Exchange email.
Comment 7 Robert Schroll 2015-04-28 16:29:06 UTC
Thanks for the clarification.

Not having looked that this part of the IMAP code, I believe Geary gets a notification from the server that this is new mail.  At this point, I think it updates the unread count in the folder list.  It then queries the server to actually get the mail, which is added to the conversation list and (if relevant) the conversation view.  It sounds like that second step isn't being taken, though I can't tell you why offhand.

If you switch folders and the return to the inbox, does that trigger the new mail to be loaded?
Comment 8 David.Mulder 2015-04-28 16:48:23 UTC
No, switching folders doesn't cause it to load messages.

FYI, I just built from source (your master branch), and I noticed your build depends on gobject-introspection, but configure doesn't check for it. Want me to file a bug on that?
Comment 9 Robert Schroll 2015-04-28 16:51:39 UTC
Thanks.  We'll have to puzzle over your debug logs to try to figure out what's going on.

The configure issue is bug 748464.
Comment 10 David.Mulder 2015-04-28 16:55:34 UTC
Ah, yes. That's the same issue. FYI, I was going to check if I see the same behavior in your latest source, but I'm on the VPN and having routing issues. I'll let you know next week if there's any difference.
Comment 11 David.Mulder 2015-05-05 15:48:41 UTC
Ok, I still see the same behavior in your latest master branch (as of 2015-04-28).
Comment 12 Jim Nelson 2015-05-24 21:36:45 UTC
I don't see in the debug any indication that the server is notifying Geary of new messages.  Geary detects the count changing in the STATUS calls, but since it has the Inbox open it assumes the Inbox connection will be notified and download the messages.

We'll need to see a more thorough debug log to trace this problem.
Comment 13 Robert Schroll 2015-05-25 02:35:14 UTC
Would '--debug --log-network' get us enough information?
Comment 14 David.Mulder 2015-05-26 16:43:41 UTC
'--debug --log-network' are actually the parameters I used to collect the debug that's attached.
Comment 15 Robert Schroll 2015-05-26 18:46:41 UTC
What do we need, then, Jim?  A longer session?
Comment 16 Robert Schroll 2015-07-10 18:55:12 UTC
*** Bug 752155 has been marked as a duplicate of this bug. ***
Comment 17 David.Mulder 2015-07-10 20:26:45 UTC
If somebody would be willing to explain the layout of the source code to me, and maybe point me where to look, I'd be willing to spend some time debugging this (maybe fix it). I am a developer.
I tried poking around in the code and inserted some debug messages, but I quickly got lost in the geary source code.
Comment 18 Michael Gratton 2017-10-26 00:27:33 UTC
Hi David, are you still experiencing this issue? If so, it might help adding --log-deserializer so we can get a better understanding of what is going on. This log might be quite large and contain personal information, so feel free to redact email addresses, etc and/or email it to me directly.

Also, if you have multiple accounts, please disable all but one that is exhibiting this issue - in 0.12 this can be done by moving the account's config directories out of ~/.config/geary.

Thanks!
Comment 19 Michael Gratton 2018-02-07 06:29:20 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug report if you can provide the information that was asked for in a previous comment.
Thanks!