AquaMail Forum

English - Android => General Discussion => Topic started by: doctorow on December 15, 2012, 12:42:52 am

Title: Messages to keep: 250, still needs Internet access to go to page 2?
Post by: doctorow on December 15, 2012, 12:42:52 am
"Messages to keep per folder" is set to "250 messages".
"Messages per page" is set to "Standard (50)"

If I understood the meaning of "messages to keep" correctly, it would mean that Aqua Mail stores the latest 250 messages of each folder in its local database. But then, how came when I am disconnected from the Internet, I am never able to go past my first page (50 messages), without the error message appearing: "Error synchronizing mail: Error connecting"? Shouldn't Aqua Mail be able to view the last 250 messages, in other words, go as far as page 5 given my settings?
Title: Re: Messages to keep: 250, still needs Internet access to go to page 2?
Post by: Kostya Vasilyev on December 15, 2012, 03:28:36 am
Your settings mean: store 250 most recent messages, keep 50 of them up to date.

Only the up to date messages are shown, and when you scroll down, the app needs to verify their state on the server (do they even still exist?)
Title: Re: Messages to keep: 250, still needs Internet access to go to page 2?
Post by: doctorow on December 15, 2012, 10:44:31 am
Your settings mean: store 250 most recent messages, keep 50 of them up to date.

Only the up to date messages are shown, and when you scroll down, the app needs to verify their state on the server (do they even still exist?)

Hmm. Then, what's the meaning of storing more recent messages than what is currently shown on the first page? If the client is in offline mode, one would expect it to show the messages it has in cached mode. Your reasoning, verify their state to check if they even still exist, could also be applied to the first x messages on the first page. Yet they are shown when in offline mode.
Title: Re: Messages to keep: 250, still needs Internet access to go to page 2?
Post by: doctorow on December 16, 2012, 01:16:04 am
I should add, the reason I wonder if an option could be added to show any stored message in offline mode is because I often find myself in situations where I cannot connect to the Internet: When I am outside the country (data roaming is prohibitively expensive) and when I am on the plane (airplane mode). Still it's often important to access mail that may be within the most recent x stored messages, but not within the first page. Hope that makes sense.  :)
Title: Re: Messages to keep: 250, still needs Internet access to go to page 2?
Post by: FullSyncer on December 21, 2012, 01:35:48 pm
Hi,

I fully support doctorow!

I have a few 1000 e-mails in my inbox. I set everything to maximum: 1000 e-mails per page and 10 000 e-mails per folder.

However, after spending a lot of time to click to download an extra 1000 e-mails of my inbox on my Wifi at home, everything beyond the first 1000 e-mails disappears again at some point while I am on the move without a good internet connection.

Could you at least set the maximum number of e-mails per page to a higher value than 1000 or - even better - leave it to the user to decide.

Nowadays Android devices have many GBs of memory. There should not be a concern with storing more than 1000 e-mails.

Thanks,

Marcus
Title: Re: Messages to keep: 250, still needs Internet access to go to page 2?
Post by: jcasares on January 08, 2013, 04:58:49 pm
Oh, is that how it works?
I had some messages missing after took the care to download them all (in folders with up to 1500 messages).
I would like them not to be deleted if the app can't check their status.
Sometimes I'm without connectivity and I want to be able to search the downloaded messages.
Title: Re: Messages to keep: 250, still needs Internet access to go to page 2?
Post by: Kostya Vasilyev on January 10, 2013, 02:53:53 am
The number of messages stored on the device is the "Messages to keep" setting, under each account's Options and Folders. The default is 250, and the app does clean them up over time.

I guess keeping at least "Messages per page" would be a good idea. I'll make the change.
Title: Re: Re: Messages to keep: 250, still needs Internet access to go to page 2?
Post by: doctorow on January 10, 2013, 10:12:10 am
The number of messages stored on the device is the "Messages to keep" setting, under each account's Options and Folders. The default is 250, and the app does clean them up over time.

I guess keeping at least "Messages per page" would be a good idea. I'll make the change.

So if I have 250 messages to keep, and 50 messages per page, per folder, shouldn't I be able to view 5 pages when in offline / flight mode? Because I cannot get past the first page without a connection error message.

Sent from my GT-I9100

Title: Re: Messages to keep: 250, still needs Internet access to go to page 2?
Post by: jcasares on January 10, 2013, 06:39:23 pm
I have 5000 messages to keep and 250 per page. I have a folder with more than 1600 messages and today I tried to check if I had all the messages I downloaded some time ago. When I reach the last message loaded I get the "Load 250 more messages". So, something is removing messages already downloaded even when the settings says not to.

The account is IMAP based but I only have 3 folders enabled with IMAP push (Inbox, Sent Items and Drafts). The rest I load all the messages once through WiFi and then do a manual an occasional update when I need to refresh it to get new things.
Title: Re: Messages to keep: 250, still needs Internet access to go to page 2?
Post by: lb on January 15, 2013, 09:52:16 pm
The number of messages stored on the device is the "Messages to keep" setting, under each account's Options and Folders. The default is 250, and the app does clean them up over time.

I guess keeping at least "Messages per page" would be a good idea. I'll make the change.
I have the same setup and am seeing basically the same issue with the latest (pro) rev. (keep set to max, page set to max, about 2500 messages in inbox). 

So why have a "Messages to keep" setting at all if really doesn't mean that these messages are kept?

I think having "Messages to keep" set the number of messages downloaded and "Messages per page" only select how many of these messages are displayed would be optimal.  (limited number of messages on a page seems to increase the time of to show messages in the folder.)

Offline access is the number one reason I bought the pro version, so fixing this would be really great.

Much thanks!
Title: Re: Messages to keep: 250, still needs Internet access to go to page 2?
Post by: gmturner on February 15, 2013, 08:40:41 am
any plans to fix this? id love to buy the app as its beautiful but i have an imap email with 3400 emails and i cant get it to store anymore than 1000 locally. Well i can get it to download all 3400 but then all of a sudden it cleans it up and there is only 1000 again.
Title: Re: Messages to keep: 250, still needs Internet access to go to page 2?
Post by: Kostya Vasilyev on February 22, 2013, 12:19:43 am
Looking at the settings in the current build, I see that "messages to keep" goes to 10,000. It's that way for a while now, actually.

This is a Galaxy Nexus, on smaller screen devices I suppose some scrolling might be necessary to access the items at the end of the list....

As for offline mode, yes, that's something I'd like to do. I often see those things in the sky, called planes, and there are people inside... and bad cellular coverage areas, too.
Title: Re: Messages to keep: 250, still needs Internet access to go to page 2?
Post by: doctorow on February 22, 2013, 12:56:09 am
As for offline mode, yes, that's something I'd like to do. I often see those things in the sky, called planes, and there are people inside... and bad cellular coverage areas, too.

Kostya, it shouldn't be too hard given that the mails (as defined in store x most recent messages) are already in Aqua Mail's storage, should it? The only thing that Aqua cannot do in offline state is verify their state on the server.

Well, on a second thought, I guess it can be a bit more complicated. Namely, when you get back online, Aqua should probably update the appropriate IMAP flags (e.g. has an previously unread message in the mail store been read while being offline? if yes, mark it as read on the server as well).
Title: Re: Messages to keep: 250, still needs Internet access to go to page 2?
Post by: Kostya Vasilyev on February 22, 2013, 12:58:03 am
Message operations are already written to the database first, in case the network is down (not known in advance).

So yes, it's "just" an issue of handling those errors in the UI and having a button or something to "show older out of date messages"... :)
Title: Re: Messages to keep: 250, still needs Internet access to go to page 2?
Post by: doctorow on February 22, 2013, 01:05:56 am
Message operations are already written to the database first, in case the network is down (not known in advance).

So yes, it's "just" an issue of handling those errors in the UI and having a button or something to "show older out of date messages"... :)

Sorry, I didn't mean any disrespect. I only compared it to the huge improvements/changes that you introduce in each Aqua update... you have set a very high benchmark.  ;D
Title: Re: Messages to keep: 250, still needs Internet access to go to page 2?
Post by: jcasares on February 22, 2013, 01:12:50 am
Looking at the settings in the current build, I see that "messages to keep" goes to 10,000. It's that way for a while now, actually.
But they are not kept all the time. After a while I get again the "Load XXX more" even when I had them before.
Title: Re: Messages to keep: 250, still needs Internet access to go to page 2?
Post by: Kostya Vasilyev on February 22, 2013, 03:15:23 am
Oh, no offence was taken and I'm sure none was meant :)
Title: Re: Messages to keep: 250, still needs Internet access to go to page 2?
Post by: gmturner on February 22, 2013, 05:33:31 pm
Hi Kostya,

Thanks for getting back to us.

The "messages to keep" setting seems to do nothing, its overwritten by the message per page setting which is limited to 1000.

i have 3400 emails in my inbox and i want them all on my android device. I set "messages to keep to 10,000" and messages per page to the maximum of 1000.

I can manually make it download all 3400 emails by scrolling down until it downloads them all, takes a hour or so. BUT as soon as you hit refresh or let it check for mail it discards 2000 of them and the smart inbox count goes back down to 112/998 instead of 250/3400.

In k9 you just set "no time limit" and it downloads all messages on server, but for some reason 3400 is too much for k9 and causes it to force close when you try opening mail.. Aqua mail seems to handle 3400 fine i just cant get it to keep them on the device.

Hopefully you can fix it soon.

Thanks,

Title: Re: Messages to keep: 250, still needs Internet access to go to page 2?
Post by: lb on February 26, 2013, 12:34:27 am
Looking at the settings in the current build, I see that "messages to keep" goes to 10,000. It's that way for a while now, actually.


Thank you for the response and great work!

My imap inbox currently has about 4500 messages in it. The total is correctly reported in the folder list. I have messages to keep set at 10K and messages per page at 1K.  I force disconnected state by going into airplane mode, and I'm only able to see the most recent 1K messages.  Also, images are not cached, even though I allow caching of images over wifi (up to 250KB) and was in a fully synced state before going off line.  It does look like attachments are properly download (a good thing!)

Any thoughts?

Title: Re: Messages to keep: 250, still needs Internet access to go to page 2?
Post by: Kostya Vasilyev on March 07, 2013, 11:54:52 pm
Hello all.

Please try this version:

http://www.aqua-mail.com/download/AquaMail-market-1.2.2.23.apk

After a folder sync error, tap a button on the right side of the error message (in the footer) to show all cached messages ("messages to keep", possibly out of date with respect to their states on the server).

In airplane mode, this is engaged automagically.

Screenshots below.
Title: Re: Messages to keep: 250, still needs Internet access to go to page 2?
Post by: doctorow on March 08, 2013, 12:24:04 am
W---O---W!!!! Very nice implementation. I am going to try it ASAP!  ;D
Title: Re: Messages to keep: 250, still needs Internet access to go to page 2?
Post by: doctorow on March 09, 2013, 12:18:47 pm
Kostya,

Looks good so far, I encountered no issues with the new airplane support.  :D

One thing however that occurred was a weird graphical glitch. See attachment. I have never seen that before until I installed this version.
I then restored a backup of the earlier, official, version, and the graphical glitch disappeared. Then I reinstalled this new version, and the glitch still didn't reappear. I am sorry I cannot be more helpful.
Title: Re: Messages to keep: 250, still needs Internet access to go to page 2?
Post by: Kostya Vasilyev on March 10, 2013, 03:24:37 am
This version:

http://www.aqua-mail.com/download/AquaMail-market-1.2.2.25.apk

has a way to "show offline" messages as needed, not just after a sync error or in airplane mode.

It's Menu / View / Offline mode in folder message list mode.

@lb, @gmturner -- can you this build, and try the offline mode, to see if your old messages are there? They should be.

( not in the smart box, in a message list for a specific folder )

There is a difference here:

- "To keep" is how many are cached on the device

- "Per page" is how many are shown in message lists (folder or smart inbox), the idea is to show only what's known to be up to date, while keeping the possibility to scroll down and see more, if needed (with a faster server sync, to see if those messages are still there, in the first place!)
Title: Re: Messages to keep: 250, still needs Internet access to go to page 2?
Post by: jmccabe on March 12, 2013, 12:00:52 am
As for offline mode, yes, that's something I'd like to do. I often see those things in the sky, called planes, and there are people inside... and bad cellular coverage areas, too.

Well, if more people demanded internet access within planes the world would be a better place (at least, I'd be kept in a job - where I work we develop equipment for satcoms in planes, including internet access and mobile coverage :-)
Title: Re: Messages to keep: 250, still needs Internet access to go to page 2?
Post by: Kostya Vasilyev on March 12, 2013, 02:07:13 am
Re: internet on planes -- seems like that would be useful for live telemetry, too.... although trained pigeons seems like an option too...

Anyway, here is an update to the "seem more messages in airplane mode" feature:

http://www.aqua-mail.com/download/AquaMail-market-1.2.2.26.apk

- If you open a message that has not been fully loaded, and try to reply or forward, the app will try to complete the loading before proceeding to the compose screen

- If this doesn't work, due to a network error, then no compose screen

In the build above:

- The app will detect airplane mode and prompt if one wants to write a response using a partially loaded message. This can often be "good enough", and even useful when on a plane -- writing responses and saving, then sending all at once back on the 'net.

What it looks like: screenshot attached.
Title: Re: Messages to keep: 250, still needs Internet access to go to page 2?
Post by: doctorow on March 12, 2013, 01:52:06 pm
Works very nice and intuitively, Kostya.

One small thing, not sure if it needs any attention... when in airplane mode - you can still select view->show headers, resulting in a connection error.
Title: Re: Messages to keep: 250, still needs Internet access to go to page 2?
Post by: Kostya Vasilyev on March 12, 2013, 03:08:04 pm
Thanks.

Not just headers, other places too. I was focusing more on getting past network errors to access stuff that otherwise could not be accessed.

If what I've done so far works out well, that's something for "phase 2".