AquaMail Forum

English - Android => Bug reports => Topic started by: PeterS on April 22, 2017, 03:03:00 am

Title: Conversation issues
Post by: PeterS on April 22, 2017, 03:03:00 am
With 1.8.2-216 I'm facing a problem with conversations spanning from present to a few days back. I've set AquaMail to display a Gmail IMAP account with 5 last days of emails (sync 5 days, cache 250 messages). Some of conversations now go a few days further to the past, so I let AquaMail "read another 5 days", once or twice. In an opened conversation, I select one older "message x/xx in conversation n/nn" and read and swipe towards newer messages. Suddenly after AquaMail displays some message, the field with "message x/xx in conversation n/nn" disappears (gets empty) and no swiping is possible. (Which is unusual, because the swiping between messages is always possible, regardless of the conversations.) When I exit from the message, the folder again displays the last 5 days only.

After re-reading the older emails again, I can see that the message x/xx in conversation n/nn has already been read and I can continue with opening the next message x+1/xx - but the same will eventually happen after displaying 2-3 more messages.

It does not happen anymore, if the message being displayed already falls into the most recent time period (5 days).

And it also happens, if the complete conversation is older than the said 5 days, i.e. it does not need to span to the most recent 5 days.

I've re-checked with other Gmail IMAP account (set to sync 50 messages / cache 250) - the same behavior, randomly (but very often) the possibility to swipe between messages gets lost.

One more detail - according to my setup, unread messages get marked as read after being displayed 3 seconds long. The text "message x/xx in conversation n/nn" disappears at the same moment. Swiping forward through already read messages works correctly. (Except for swiping back to past, which cross-jumps to another conversation, but that's another, old issue.)

Sent from a touch display, which took care of perfectly scrambling my thoughts.

Title: Re: Conversation issues
Post by: Kostya Vasilyev on April 23, 2017, 04:11:03 pm
Do you use push mail?

Do you use "sort unread first" or "unread + starred first"?
Title: Re: Conversation issues
Post by: PeterS on April 24, 2017, 08:41:24 pm


Do you use push mail?
Yes I do. For both accounts.

I have also some accounts without push mail, but usually without any longer conversations. I've only checked one single conversation spanning to November, it did not happen with it. But one attempt is not enough...

Do you use "sort unread first" or "unread + starred first"?
Usually none of them, just plain date/time sorting, newest at top. I set it only temporarily if I'm looking for some particular messages.

Some more testing. A threads spans from yesterday (23.4.) back to March. Initially it shows 25 messages (in conversation 25/60) between 19.-24.4. I read 5 more days, the thread has now 32 messages (in conversation 25/79), spanning back to 14.4. I mark messages 4-7 as unread, then open the 8/32. Swipe to 7/32 (in conversation 25/79), after a few seconds the message gets marked as read. If I wait a few more seconds, I can suddenly see 7/25 (in conversation 25/60). The older messages are gone.

Sent from a touch display, which took care of perfectly scrambling my thoughts.

Title: Re: Conversation issues
Post by: PeterS on April 24, 2017, 08:44:41 pm
If it matters, I've checked "Intelligent navigation in messages (skip too old messages if conversations are enabled)". But it doesn't seem to have any influence.

Sent from a touch display, which took care of perfectly scrambling my thoughts.
Title: Re: Conversation issues
Post by: Kostya Vasilyev on April 25, 2017, 08:30:19 pm
So the common theme, the trigger is that you "scroll down to load more messages"?

And if you don't, the issue doesn't exist?
Title: Re: Conversation issues
Post by: PeterS on April 26, 2017, 01:08:30 am


So the common theme, the trigger is that you "scroll down to load more messages"?

And if you don't, the issue doesn't exist?
Yes, if I don't load more messages, they can not vanish.

But if I want to see them (any above the initial set), I have to load them.

Sent from a touch display, which took care of perfectly scrambling my thoughts.

Title: Re: Conversation issues
Post by: PeterS on April 26, 2017, 01:37:37 am


On main view, options (usually three dots), try to compact database.
Well, the Slovak translation offers "Clean up database", sounds a bit scary, let me see the original... OK, indeed Compact.

Nope, it does not help.

Now I understand, why the text banner "message x/xx in conversation n/nn" disappears - because the message is not in memory anymore.


What's your device and Android version?
OnePlus X (ONE E1003), Oxygen OS 3.1.4, Android 6.0.1.

I have already been having issues with previous OS versions with menu overflow button and Kostya did app changes to fix them, but now I fail see anything common between the phone and this issue.

Sent from a touch display, which took care of perfectly scrambling my thoughts.

Title: Re: Conversation issues
Post by: Kostya Vasilyev on April 28, 2017, 08:30:32 pm
Quote
Yes, if I don't load more messages, they can not vanish.

But if I want to see them (any above the initial set), I have to load them.

Just so I'm clear -- I'm not trying to question your motivation etc. -- if you stay inside the "default" sync window (do *NOT* scroll down for more messages) then the issue doesn't happen, right?

But if you do scroll down and "load more more messages" -- and open one of those "just revealed" messages -- then the issue does happen?

And you do use push mail, right?

No, it's not your phone this time :) but please confirm what I wrote above (or correct me).
Title: Re: Conversation issues
Post by: PeterS on May 02, 2017, 07:41:00 am
All correct.

Only to the second question, the opened (or swiped-to) message has to be unread, I don't remember whether I've reproduced it with opening an already read message.

Sent from a touch display, which took care of perfectly scrambling my thoughts.
Title: Re: Conversation issues
Post by: Kostya Vasilyev on May 02, 2017, 08:21:46 pm
OK thanks.
Title: Re: Conversation issues
Post by: PeterS on July 23, 2017, 12:14:31 am
The issue can still be reproduced with 1.10.0-403 (I see that it is an older  version, but I was only able to update to it a few days ago).

After loading messages for a few more days, it is also sufficient to update the mail folder (e.g. Inbox), the additionally loaded messages immediately vanish.

Sent from a touch display, which took care of perfectly scrambling my thoughts.
Title: Re: Conversation issues
Post by: Kostya Vasilyev on July 23, 2017, 02:13:38 pm
Yeah, nothing ever happened to that in 1.10 - but please try the latest 1.11.0-dev.
Title: Re: Conversation issues
Post by: PeterS on July 31, 2017, 12:54:52 am
1.11.0.517 seems to be fixing the original issue, many thanks! And opening image attachments directly in the app is nice :-)

Sent from a touch display, which took care of perfectly scrambling my thoughts.

Title: Re: Conversation issues
Post by: PeterS on July 31, 2017, 12:56:42 am


After loading messages for a few more days, it is also sufficient to update the mail folder (e.g. Inbox), the additionally loaded messages immediately vanish.
This happens also in the 1.11 series. Is it intentional?


Sent from a touch display, which took care of perfectly scrambling my thoughts.

Title: Re: Conversation issues
Post by: Kostya Vasilyev on August 01, 2017, 09:49:46 pm
Sorry I'm lost.

Two messages above, you wrote that "1.11.0.517 seems to be fixing the original issue, many thanks".

So what is this about then? Could you please clarify?

Quote
After loading messages for a few more days, it is also sufficient to update the mail folder (e.g. Inbox), the additionally loaded messages immediately vanish.
This happens also in the 1.11 series. Is it intentional?
Title: Re: Conversation issues
Post by: PeterS on August 02, 2017, 09:41:03 am
OK, Kostya, I'm sorry for having confused you :-)

The initial issue was that after loading additional messages (from past days, in a Google IMAP folder) and reading any  unread one of them, AquaMail released all additionally loaded messages from its cache.
This is now fixed in 1.11 series.

While testing a 1.10 version I've noticed, that selecting the folder's "Update" menu entry also releases these additionally loaded messages from cache. Which is not a problem, I was just curious whether there is any intentional reason to release additionally loaded messages.

Sent from a touch display, which took care of perfectly scrambling my thoughts.
Title: Re: Conversation issues
Post by: Kostya Vasilyev on August 02, 2017, 02:00:42 pm
Quote
While testing a 1.10 version I've noticed, that selecting the folder's "Update" menu entry also releases these additionally loaded messages from cache. Which is not a problem, I was just curious whether there is any intentional reason to release additionally loaded messages.

"Refresh" / "Update" only looks at "messages to sync" number of messages on the server - and resets the "what messages do we know to be up to date with the server" at the end.

So yes this is intentional.

I did the fix "push catch-up resetting the last loaded watermark" - which is what was causing you trouble.
Title: Re: Conversation issues
Post by: PeterS on December 02, 2017, 01:32:13 am
I'm again (or still?) observing some form of the original issue. After finding out the pattern, I'll come back again later to describe it.

Briefly described, the scenario is just like before. Inbox opened, the messages are being grabbed in chunks of 5 days. I've a conversation "Abcdef", consisting of say 80 messages, spanning 15 days. I'm reading them, swiping from the oldest towards the most recent ones. Sometimes I switch to another application, then come back to AquaMail. Sometimes I switch to another conversation, then return to continue reading the "Abcdef".

At some point I notice that I can't swipe further, or I can, but the thread has only e.g. 46 messages from the last 5 days. The older messages are gone. I definitely do not update the Inbox in between, or send any messages, or else, just read them.

I just have to spot the exact moment.

[edit] The only thing, which springs in my mind, is possibly a new messages appearing in the Inbox.

Sent from a touch display, which took care of perfectly scrambling my thoughts.
Title: Re: Conversation issues
Post by: Kostya Vasilyev on December 02, 2017, 12:19:18 pm
And to get to the original 80 you had to tap "load more" at the bottom of a message list - or scroll down for the same?

Title: Re: Conversation issues
Post by: PeterS on December 03, 2017, 04:33:38 am
Yes, exactly.
Sometimes after reading a few dozens of messages the cache is back to my default 5 days, sometimes it lasts longer.

Sent from a touch display, which took care of perfectly scrambling my thoughts.

Title: Re: Conversation issues
Post by: Kostya Vasilyev on December 03, 2017, 02:10:20 pm
Believe it or not, this is working as intended.

Or let me rephrase - this is a consequence of the app's approach to "what is syncs exactly" working as intended.

You may want to increase how many messages are synced / stored:

Can be done by long pressing on the account -> options and folders -> account options

The defaults are "sync 50, cache 250" - please try "sync 100, cache 250" and if that's not enough yet, maybe "sync 250, cache 500".

Title: Re: Conversation issues
Post by: PeterS on December 04, 2017, 12:49:12 am


The defaults are "sync 50, cache 250" - please try "sync 100, cache 250" and if that's not enough yet, maybe "sync 250, cache 500".
I have most of the accounts set up like this, they are either low traffic or short (1-3) conversations, usually spanning only a day or two. I'll try to see whether I'll observe the issue here as well.

The problem account has much higher traffic, with conversations occasionally spanning up to a few hundreds of messages during a few months. Some year or two ago I've modified it's settings to "sync 5 days + cache 250 messages", maybe it is only improperly set up like this, because I've misunderstood the options?

Sent from a touch display, which took care of perfectly scrambling my thoughts.

Title: Re: Conversation issues
Post by: Kostya Vasilyev on December 05, 2017, 08:04:04 pm
Re: Some year or two ago I've modified it's settings to "sync 5 days + cache 250 messages"

It means that only last 5 days will be kept "fully in sync with the server" - and unless you "scroll down to load more", the presentation of conversations will be limited to those 5 days too.

And any "scroll down to load more" will reset eventually on next mail sync - which for you will happen, and pretty soon too, if you leave the app "just sitting there" in the background.

Please try 14 days. When using a "days" value as "messages to sync" it's not necessary to increase "messages to cache" (so your "250" is fine already).