Author Topic: Messages getting received as UNREAD and then they turn to READ on next sync  (Read 18169 times)

rameshchetty

  • Newbie
  • *
  • Posts: 2
Hi


I have a pro account , I have multiple email accounts configured , just on one specific email account my emails are received as unread and they turn to read on the next sync , i dont know how to fix this , i did some research on the forum and my error is very similar to

newbielink:https://www.aqua-mail.com/forum/index.php?topic=3942.0 [nonactive]


can you please help me , this is giving me lot of headache....


Regards
Ramesh

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
AquaMail does not mark messages as read on its own.

My guess is that you've running another mail app that accesses same account -- and this causes the messages to get marked as read, and this change then gets synced into AquaMail.

Windows, Outlook, POP3, maybe?

You can check Yahoo web mail and as long as the state of each message there matches what you see in AquaMail -- then AquaMail is doing its job properly.


Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

rameshchetty

  • Newbie
  • *
  • Posts: 2
Thanks for your quick response , I did have outlook accessing the email account but I have shut it down and now its only Aqua mail accessing the mails , so im no sure what to do ....

Everything was alright untill Monday and I don't know suddenly this is happening , I did not change anything ......

Regards

Ramesh Chetty

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Well, sorry, I did not change anything -- latest update 1.6.2.9 was July 18th 2016.

AquaMail connects to Yahoo using IMAP. And IMAP provides per-message "read/unread state sync".

So AquaMail just syncs whatever read/unread state is reported by Yahoo, message by message.

If it's Outlook causing messages to be marked as read (this often happens if you use POP3 there), then they're going to update in AquaMail too.

If it's "something else" (a Yahoo glitch) causing messages to be marked as read, or causing Yahoo mail server to report them as read, then they're going to update in AquaMail too.

At this point I'd be sure to not use Outlook, or any other mail app, and watch Yahoo web mail for changes.

If you see unexpected changes from unread to read and even if you don't, I'd contact Yahoo support (and tell them exactly what you're seeing).

But I'll reiterate: for IMAP, which provides this capability, AquaMail will sync each message's read/unread state not only when that message is initially received, but also if it changes later.

This is perfectely normal and intended, but the root cause is not AquaMail doing this, rather it's AquaMail seeing those messages turn read (legitimately because of using an app over POP3 or due to some Yahoo side glitch) and doing what it's supposed to do, updating them to read in the app.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

kganshirt

  • Guest
I can assure you it has nothing to do with logging into the account with a browser and reading the messages online.  I just received a new email into my ISP IMAP account. It showed up in the Aquamail widget as Unread (bold) as it should. When I opened Aquamail it also showed up as Unread (bold) as it should. I did not read the message so it remained unread in the widget when I returned to the Android home screen,

On the next sync (Aquamail sync icon on notification bar) the new email changed to Read (not bold) in the widget as I watched. 

Aquamail syncs every minute or two so there was no way I had time to log into my ISP account and read anything, even if I wanted to. I am in the habit of logging out of my ISP email account on those occasions I go online to check the spam folder, so there should be no possibility of some sort of phantom activity.

I watched this occur simultaneously on both my phone (Nexus 5) and tablet (Nexus 9).

This has been occurring for many weeks on both devices as regularly as a clock - -  new mail shows up as Unread and automatically changes to Read on the next sync. I thought this was such an obvious bug it would get lots of reports and get fixed quickly. When it did not get fixed after such a long time I came here to look for answers and found this thread.

My ISP account is my most used account so it's obvious there. I rarely use my Yahoo account or Outlook account so I can't say if they also do it.

If you are so confident Aquamail is not responsible and I am confident I'm doing nothing on my ISP account to cause it, can you please suggest what I can do to troubleshoot this issue?

If it helps, I just logged into my ISP account with my browser and the message mentioned above shows as Read status. I did nothing on either Aquamail or the webmail interface to cause that (eg. I have not read the message anywhere with anything). Is it possible that Aquamail updates the Unread/Read state in both directions and caused it?

By the way, i love Aquamail and got the Pro version within a few days of trying it a few years ago. And I greatly respect that you continue to support and enhance it regularly. Thank you for any help you can provide with this problem.

...ken...

StR

  • Hero Member
  • *****
  • Posts: 1558
can you please suggest what I can do to troubleshoot this issue?
Ken,

Let me try to give you suggestions of what I would have tried in your situation.

First, to make sure I understood correctly: you access this e-mail account only via 3 ways: (1) from your phone and  (2) from tablet, with Aquamail on both set to connect via IMAP, and (3) occasionally via Webmail interface. Right?
No other computers, devices, apps on the same phones (e.g. stock app originally configured to connect and later abandoned but still running), backup connections, etc.
Correct?

Does it happen always, or only sometimes?
(If it happens always, - that should mean that all messages in your account are read, except for the first very few moments after they arrived. Is that the case?)


In that case, here is what I would do for testing (temporarily):
1. Turn off the sync in Aquamail for the account in question on both devices (both scheduled sync and PUSH, if enabled). Log in via your webmail interface, and watch what happens to the status of the new message when it comes in, a few minutes after that (obviously, you'd need to reload your webmail window).
(You can send yourself a message from a different account.)
If the state has changed, - that means that either your server changes it, or something else accessing your account.


To Turn Off the sync in Aquamail for the specific account, follow this procedure:
Long Press on the account name (in the account view) -> Options and folders -> Account options -> Scheduled sync  -> UNCHECK.
-> IMAP Push -> UNCHECK
Please, use this way so that you can run the test #3 (below) without interference.


If you see the state not changing after a few minutes of the message arrival:

2.  Set up a different Mail program to access this e-mail account via IMAP. I'd personally suggest Thunderbird on a computer, but if you don't have access to a desktop/laptop, you can try using your stock app on the tablet.
Once it is set up and is receiving mail, send again a test message to this account from another one, let this program sync, do not open the message, and watch if the message status changed.
If it did, it means that your ISP server changes the status of the message upon it being downloaded via IMAP. (This would be weird) - You'd need to contact your ISP for further questions about "why", and "how that can be disabled".

If that state didn't change, try
3. Create a new Aquamail IMAP account on one of your devices, - for the same ISP account.
Do not change any options. 
Repeat the test is in 2. above.
See if the state of the message changes after Aquamail re-syncs.

If the state of the message does not change, and you've done everything as described above, - it means that something is messed up with the configuration/settings on your existing accounts in Aquamail.  You can use the newly created account instead and tune your settings paying attention to what you might be changing in the process. (Although I cannot think of any settings that would do this... But maybe I am missing something)

In case the state does change in this case (and it didn't in #2), - you may want to get back here, and let Kostya know, and at that point you might need to catch the behavior in the debug log.

But I actually doubt you'd get to the Test #3.

kganshirt

  • Guest
Thank you for the detailed suggestions, StR.  That all makes sense. I will try it and see if I get past test #2.  :)

One thing I completely forgot about until I read your first question about my actual connections to that ISP IMAP account is that I do have other devices connected to it. I have four Windows 10 PCs that have the default Windows 10 Mail account connected to it. I use two of them regularly and one is normally turned on 24/7. Two are casual (Rec room entertainment system and workshop system) and might not be turned on for days or weeks between uses.

And I have the Windows 10 Insiders Fast Ring releases running in a VM on my main computer that also has the default Mail app connected to that account (the browser in the VM is what I'm entering this with right now).

It never occurred to me that the Windows Mail app might be involved (shame on me) so I'll make sure it can't sync from any machine while I do the other testing to eliminate the possibility of an issue on my ISP or in Aquamail. Then if I get that far I'll do some specific tests to see if it's the default Windows Mail app that's involved.

I think part of the reason I never considered the Mail app is that its syncing is not frequent. I have left it at the default, which is measured in something like an hour or more interval, and if I want to check mail on one of those machines I just hit the sync button to force a manual sync.

When the Unread state changes to Read in Aquamail's widget when I'm watching, it typically happens quickly, eg. as I mentioned above, a new message came in in one sync and changed to Read state on the very next Aquamail sync. I was watching this happen in the Aquamail widget on both my phone and my tablet at the same time. It happened within less than a minute of each other on both devices.  I have seen it do it that quickly on previous occasions, which is why I suspected Aquamail as the culprit.

Again, thank you for the detailed test suggestions. I will report back as soon as I get the chance to do the testing properly.

                ...ken...

StR

  • Hero Member
  • *****
  • Posts: 1558
Ken,

In that case, I would suggest first to turn off all those Win-10 computers/devices, and just watch things in Aquamail without any other modifications.
I am sure, you will not have anything changing read status.
This way you'll save yourself some time and effort.

Then, you will have to figure out which of your Win10 devices is the culprit.

The reason why you see messages turning "read" so quickly after the first sync of Aquamail is either one (or more?!) of other devices is (are) configured to connect very frequently (every minute?) or is using "PUSH" connection.

If one of those Win10 PCs is connecting via POP3, that could be a likely reason for the "read" status, as Kostya had mentioned above.

kganshirt

  • Guest
Thanks again for your help, StR. I'll check to see if any of the Win10 boxes are set up to connect via POP3. I had been assuming they would be IMAP. But it's never safe to assume and I can't be sure because the Windows 10 default Mail app does an automatic connection when you first set it up. If it's successful you have no idea how the connections are done. You only know if it fails and you have to intervene manually.

 ........ Okay, I just checked the settings on the box I'm on at the moment and it's POP3 .. an old POP3 port at that.  I've switched the port to the current IMAP port. Now I'll check the other machines to see how they're set up and fix any that are on one of the POP3 ports.

Thanks to both you and Kostya for the help.  I'll still test to be sure it's not something else, but I'm pretty sure from the explanations you have both provided that that's the problem. :thumbs-up:

            ...ken...

kganshirt

  • Guest
Okay, it looks like the Windows 10 Mail app was the culprit. I should hasten to add that it was not some bug in that mail app. It was simply the setup problem I found. For some reason the automagic setup routine used an older port number that happens to a POP3 port. I changed it to the current and up to date IMAP port and turned off my other machines.

I sent a test message to my ISP account from my Gmail account (using the Android Gmail app on my phone). It showed up in the Aquamail widget as Unread (bold). That was more than 15 minutes ago. I've seen some Aquamail syncs, forced a couple myself, and forced a couple of syncs on the Windows 10 Mail app. The new message is still showing as Unread in the Aquamail widget.

Problem solved!  Thanks again for all the help.
 
              ...ken...

StR

  • Hero Member
  • *****
  • Posts: 1558
Re: Messages getting received as UNREAD and then they turn to READ on next sync
« Reply #10 on: November 15, 2016, 06:54:48 am »
Problem solved!  Thanks again for all the help.

Glad to hear that, Ken!

If you are so confident Aquamail is not responsible and I am confident I'm doing nothing on my ISP account to cause it, ...

I've heard my old boss saying this a few times: "Every so often, my wife tells me that I am not perfect, and she is right".  ;D

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Messages getting received as UNREAD and then they turn to READ on next sync
« Reply #11 on: November 15, 2016, 11:20:18 pm »
Sorry I'd missed almost all of it, just to get to the best part -- "problem solved".

StR, many thanks (again).

And yep, mixing IMAP and POP3 does that every time :)
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/