AquaMail Forum

English - Android => Bug reports => Topic started by: pepe44 on January 24, 2014, 06:50:23 pm

Title: messages read on PC still unread on Android
Post by: pepe44 on January 24, 2014, 06:50:23 pm
Hi,

I already posted this in wrong section (How to), perharps this is a bug, and should be posted here. I have two devices running Aquamail Pro, and also read my mail on PC, directly in Google web mail. Messages, that are already read on PC, still are displayed as new on both mobile devices. Both devices are using IMAP Push, new mail notification is nearly instant, no problem here, but message status is not being updated. The original Google mail client for Android doesn't have this issue, its new mail notification will disappear after I read my mail on PC, but Aquamail notification will stay there until I somehow refresh it, or delete the notification. It's troublesome, is there any solution to this issue? Maybe my settings are wrong? But they are just standard, IMAP Push, sync always on, subscribed to Inbox and Sent folders.

Title: Re: messages read on PC still unread on Android
Post by: pepe44 on January 25, 2014, 01:30:35 pm
Nobody encountered this issue? It's weird, because I have it both on an LG phone (Android 4.1.2) and Samsung tablet (4.4), so it's not a single device issue. New message notification and new message status in the Aquamail widget stays there forever. After reading my mail on PC, I always have to manually refresh widget and clear the notification on the phone and tablet, I'm really tired of doing it.
Title: Re: messages read on PC still unread on Android
Post by: schuttwm on January 26, 2014, 09:55:42 pm
For me both the widget and the application they refresh at whatever I set to the refresh cycle in my case 15 minutes during the day. So my experience is similar but not the same. Inasmuch the mail push will not update until it does the next pull this also affects the all mail folder that Gmail has as well so if I read the inbox for all mail folder will show as new until I either manually refresh or it hit the refresh cycle . For me it has not been a big deal but I understand how it could be more difficult than other places. That's my experience along those lines anyway.
Title: Re: messages read on PC still unread on Android
Post by: soadfan on January 31, 2014, 10:54:03 am
Same here. Even refresh triggered by opening the program doesn't do the job. You MUST hit refresh button to get the job done. It's so annoying   :o
Running 4.2.2 CM10.1 +permission spoofing on HTC Vision
Title: Re: messages read on PC still unread on Android
Post by: soadfan on February 01, 2014, 12:24:49 pm
It looks like when change connection (from 2g to 3g or wifi) service gets restarted and refreshing mail clear notifications
Title: Re: messages read on PC still unread on Android
Post by: pepe44 on February 01, 2014, 06:30:55 pm
I think it's a bug, not a feature. Sometimes message status and notifications get automatically refreshed, but most of time not. Sometimes only one of my two mobile devices refreshes correctly, but it's random. Looks like this forum is abandoned by the developer, hopefully it's only temporary, maybe he is on holidays now :)

If this problem persists, I will go back to stock gmail client, or K9. All the features of Aquamail are amazing and I really like it, but this bug for me is not acceptable, as being able to see the correct status of my mailbox is a very basic requirement for any email app. And no fake "new mail" status, hanging in the notification drawer.
Title: Re: messages read on PC still unread on Android
Post by: pepe44 on February 02, 2014, 12:08:33 pm
I've just read that he was being sick, I'm very sorry for my impatience, and apologize for saying that we are abandoned.
Title: Re: messages read on PC still unread on Android
Post by: Kostya Vasilyev on February 04, 2014, 05:53:29 pm
First, Gmail's IMAP IDLE implementation is incomplete (and according to a comment by a Google engineer, it will never be fixed).

Specifically, it does not push flags changes. Therefore, AquaMail will update flags after five minutes (approximately).

By comparison, I've never seen Kaiten update message flags, even if I left it alone for hours. I've also never seen K9 clear its status bar notifications, even if all messages are marked read on the server (but then, I don't use those much).

@pepe - Can you review what you see in AquaMail, now considering the possible (up to five minutes) delay, with respect to flags changes?

@schuttwm - Can you check that you have the per-account push setting actually enabled? It's disabled by default (long press the account -> options and folder -> account options)?

@sodafan - Do you also use push? Not clear from your message.

Title: Re: messages read on PC still unread on Android
Post by: pepe44 on February 04, 2014, 08:32:36 pm
Hi,

I did check it few times, I also hoped it was a delay only, but on my two mobile devices this new mail notification, and the widget showing a new message, it will never get updated, no matter how long I wait. Sometimes, but very rarely, it gets updated automatically, but I couldn't figure out any rule to this behaviour. Anyway, most of time (90% or more) it has to be updated manually. For example now, both the phone and the tablet show "new mail", although I read this mail few hours ago on my PC.

Title: Re: messages read on PC still unread on Android
Post by: Kostya Vasilyev on February 04, 2014, 08:54:52 pm
Do you have scheduled mail checking enabled too, as backup? If not, I recommend this.

Also please try the latest development build, it has some fixes for IPv6 (just a guess, but an educated one).

Ultimately, I could try to investigate if you captured this in a debug log (link below), starting with rebooting the device after enabling logging, and stopping, say, 30 minutes after the issue occurs.

Or - feel free to contact me at kmansoft / gmail with your order details for a refund.
Title: Re: messages read on PC still unread on Android
Post by: pepe44 on February 05, 2014, 01:00:40 am
I have enabled scheduled checks, and it solved my problem on the phone, thanks a lot! Now the mail status on the phone is correctly refreshed, but not on the tablet, althouth settings are identical. Anyway, tablet is more like a toy, not so important, the most important is that my phone shows correct mail status now. Thank you very much.
Title: Re: messages read on PC still unread on Android
Post by: pepe44 on February 05, 2014, 03:48:11 pm
It works, both on my phone and tablet, tablet just needs few more minutes to refresh, it's not important. Thanks again for help!
Title: Re: messages read on PC still unread on Android
Post by: pepe44 on February 08, 2014, 03:50:49 pm
Now I must say it's random, most of time message status is getting updated (maybe 60-70%), but quite often it's not, and I still have to manually clear fake "new message" on my phone and tablet. I hope the next release will somehow address this issue.
Title: Re: messages read on PC still unread on Android
Post by: Kostya Vasilyev on February 09, 2014, 10:57:51 pm
Do both devices have identical connectivity? Home WiFi, mobile data from same operator? Or different?

As I already mentioned, I could investigate if you captured the issue in a debug log, making sure to reboot after enabling logging (so I can see how things develop, and not just a point in time snapshot).
Title: Re: messages read on PC still unread on Android
Post by: soadfan on February 17, 2014, 08:06:48 am
@sodafan - Do you also use push? Not clear from your message.
Yes. And i've enabled scheduled checks every 15 minutes (from the beginning of using this app).
Well it'ss happens only with gmail accounts on my device.
Title: Re: messages read on PC still unread on Android
Post by: pepe44 on February 20, 2014, 06:05:02 pm
Recently I'm terribly busy, so couldn't investigate it further, but the problem definitely is not gone, now it's random, sometimes status gets updated correctly, most of time it's not. I've installed the latest development build, removed Aquamail and all it's data and reinstalled again, the problem still remains. For the time being I will go back to the standard Gmail app, I'm too busy to constantly check my email whenever I see phone LED blinking (and it's still blinking because there was a message in the morning, that I read on my PC long time ago).

I've sent debug log to Kostya, hopefully he can find something in it.
Title: Re: messages read on PC still unread on Android
Post by: soadfan on March 24, 2014, 11:47:03 am
I'm not sure but it looks like scheduled and manual (bottom left button) checks uses different methods. Because scheduled checks doesn't update read status correctly, but manual does. So my guess is that if you can simulate  hitting this button on scheduled time will solve this issue...
Title: Re: messages read on PC still unread on Android
Post by: Kostya Vasilyev on March 25, 2014, 02:48:01 am
Actually, I have something to say...

It appears that Gmail's already incomplete IMAP IDLE implementation has recently gotten worse.

I posted a question on Google's support forums, and got no responses since one week:

https://productforums.google.com/d/msg/gmail/u3fflE_zGM0/3AFca0_zYKEJ

What's that saying again? "To friends - everything, to others - the law"? In this case, their IMAP IDLE implementation isn't even spec compliant, so it's "to others - much less than the law".

Not sure quite yet what to do about it.
Title: Re: messages read on PC still unread on Android
Post by: soadfan on March 28, 2014, 08:08:21 am
Well, we have determined already that the Google's IMAP IDLE causes this issues. It's time to make a decision how to solve it. One way is what i say in previous post: Manual checking is working, so implement same method on scheduled checking. If both uses same method than i can't say why is working while check manual, and why not when is scheduled.
Title: Re: messages read on PC still unread on Android
Post by: Kostya Vasilyev on March 29, 2014, 01:30:26 am
I have an idea for a workaround, but you need to understand that "it takes two to tango".

FWIW, I've never - ever - seen GMail message flags update in K9 or Kaiten (and at least in worked in Aqua until Google made the recent change).

Title: Re: messages read on PC still unread on Android
Post by: Kostya Vasilyev on April 03, 2014, 11:33:57 pm
Implemented, posted:

http://www.aqua-mail.com/forum/index.php?topic=2257.0

For Gmail, folders currently running in IMAP IDLE mode will no longer be excluded from scheduled sync -- which should bring in those message flags changes.