Author Topic: Counter errors  (Read 2889 times)

someone

  • Sr. Member
  • ****
  • Posts: 415
Counter errors
« on: April 28, 2015, 04:32:55 pm »
I hate to say anything is wrong with your otherwise excellent app, but thought to mention this as something you could probably easily fix.
My imap junk folder often has a large number of messages. So, I often go there and simply select "Delete all" from the menu. This works fine but sometimes, after exiting from the folder, Aquamail occasionally shows that some messages remain in the junk folder even though the folder is actually empty. Repeating "Delete all" a second time (in the empty folder) resets the counter to zero.
This is purely cosmetic but may be a time issue easily fixed.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Counter errors
« Reply #1 on: April 30, 2015, 01:23:18 am »
Does refreshing the folder (instead of "delete all" second time) fix the issue too?

Perhaps your Spam folder actually receives messages since when it was last synced and when you do a "delete all"?

There is a subtle point here -- if that's the case, then Aqua will only delete those messages it already synced, and not any messages received by the server since then. This is by design, so you always know what exactly you're deleting.

I agree that it looks wrong, so if you can clarify, then I can try to track it down.
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/

someone

  • Sr. Member
  • ****
  • Posts: 415
Re: Counter errors
« Reply #2 on: April 30, 2015, 01:40:28 am »
How do I "refresh" the folder? Do you mean download any new emails?

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Counter errors
« Reply #3 on: April 30, 2015, 01:45:52 am »
By refresh I mean sync, check mail, etc.

If you're in the account list and using context menus (long pressing the folder), then that has a Refresh item.

If you're in the folder itself, pull to refresh or Menu -> Refresh.

The scenario is then:

- The folder's current state is, say, 10 messages

- The server receives, say, 2 new messages in this folder, but those are not yet synced into Aqua

- You're doing Delete all -- Aqua deletes only those 10 messages -- and updates the counter to the now 2 remaining on the server

- At this point, if you do "refresh" you should see those two messages show.
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/

someone

  • Sr. Member
  • ****
  • Posts: 415
Re: Counter errors
« Reply #4 on: April 30, 2015, 04:15:17 pm »
Kostya, you are absolutely correct. It just happened again. I had 5 messages in my junk folder. I did "delete all" and the 5 disappeared. I then backed out of the folder and noted that the counter said there were still 2 messages in the folder. So, I refreshed and reentered the folder and it now showed the 2 "new" messages.

So you are correct. The counter was showing the 2 messages that had arrived at the server during the time since I had last downloaded messages.

So, no problem and no bug. Thanks again for a really great app.