1 new email in Mail app is counted as many; when viewed in one folder, not updated in others

REPRODUCIBILITY: Always (Gmail)
OS VERSION: 5.0.0.68
HARDWARE: Jolla C2
UI LANGUAGE: Ukrainian
REGRESSION: don’t know

DESCRIPTION:

When new email is received, the Mail app counts it as 3 (in my case), as it includes the same email in all folders.

Also, when the new mail is viewed or deleted in one folder (for example, Inbox), other folders (such as ‘All Mail’ in case of Gmail) should be opened to update new mail badges. This is despite the fact that I set syncing all of the subfolders for this particular mail account. Manual sync (when in Inbox or on the first Mail app screen) doesn’t help either.

PRECONDITIONS:

Email account is added, all its folders are set to be synced

STEPS TO REPRODUCE:

  1. Receiving test mail to a mail account (screenshot 1)
  2. Opening new mail to mark it as read, for example (screenshot 2)
  3. To clear new mail counters a user needs to go to each folder (like ‘All Mail’ in case of Gmail) and update them separately (screenshots 3, 4)

<1 <2

<3 <4

EXPECTED RESULT:

If it is the same email in all folders, it should be counted as 1 on the first Mail screen (screenshot 1).

When an email is read or deleted in one folder, notification badges in all folders where this email exists should be cleared (unless only Inbox is set to be synced in account settings)

ACTUAL RESULT:

1 new email in Mail app is counted as many; when viewed in one folder, not updated in others

MODIFICATIONS:

I have several apps installed from Storeman / OpenRepos. No patches.

ADDITIONAL INFORMATION:

Please explain why this is in fact one email and not three copies of it and how the app is supposed to know.

IIRC this is a phenomenon that has to do with Google’s non standards compliant “special” implementation of IMAP.
This has been observed and complained about by many implementors of gmail imap clients.

Some discussion here on Reddit (the OP link is dead though):

Also here:

2 Likes

By the way, subscribing to the ‘All Mail’ folder is probably not ideal…

2 Likes

That was my first thought as well. They’ve done similar sh!t with CalDAV/CardDAV as well. Just forcing everybody to tug along because, you know, it’s Google.

That said, if SFOS has a specific Google Account option, it should accomodate for that.

But then again, OP should reset the folder update options to default values first, see if that isn’t enough to fix things.

1 Like

You are right, setting account to sync Inbox only solved the problem with notification badges for Gmail.

Although I had to delete the Gmail account in question and add it again, as folder sync settings were not saved

1 Like

Maybe a solution for this could also be “refresh folders”.