Open Bug 1785081 Opened 2 years ago Updated 4 months ago

Archiving too quickly with `A` keyboard shortcut does not mark message as read before archiving (with automatically mark read immediately on display)

Categories

(Thunderbird :: Folder and Message Lists, enhancement)

Thunderbird 104
enhancement

Tracking

(Not tracked)

People

(Reporter: bugzilla.mozilla.org, Unassigned)

References

Details

Steps to reproduce:

  1. Open Inbox
  2. Use "a" shortcut to quickly archive a few emails one at a time

Actual results:

The unread count of the Archive subfolder may increase.
This happens even when I've configured Thunderbird to mark messages as read immediately on display.

Expected results:

All archived emails should be marked as read before archiving.

My suspicion is that the next email is not fully loaded before it is archived - thus skipping the code that marks the email as read.

Summary: archiving too quickly causes Archive unread count to increase → archiving too quickly does not mark as read before archiving.

One might argue that TB is probably doing the right thing - if you're archiving so fast that the message can't finish displaying and be marked read, meaning it hasn't been fully displayed, so it's correctly still unread. I'm all for ux-efficiency, but this looks a bit like an extreme edge case.
Also note bug 1744841, where we'll actually block holding down the A key for very fast repeats.

Assuming that (with automatically mark read immediately on display) we would not regularly want to mark a message as read before displaying it, we'd have to check the actual prefs each time before we archive if they are set to automatically mark read + immediately on display and if so, mark unread before archiving even if the message was de facto not fully displayed.

Severity: -- → S4
Component: Untriaged → Folder and Message Lists
See Also: → 1744841
Summary: archiving too quickly does not mark as read before archiving. → Archiving too quickly with `A` keyboard shortcut does not mark message as read before archiving (with automatically mark read immediately on display)

If my analysis of comment 1 is correct, this is probably not a defect as we correctly mark read after full display of the message, but user archives the message before that. Thunderbird could check for automatically mark read + immediately on display as a courtesy and mark read when archiving, even with unfinished display.

Severity: S4 → --
Type: defect → enhancement

I think the analysis of comment 1 is correct, and the proposed solution would be helpful, but it is worth noting that this is not limited to the keyboard shortcut. A simple double click on the 'Archive' button will yield the same result (regardless of settings in Thunderbird).

I'm pretty sure this was not possible in previous versions of Thunderbird (or maybe less noticeable). I don't have a previous version to test, but in earlier versions, clicking Archive multiple times quickly would only archive the next email once it was displayed, and Thunderbird wouldn't try to catch up and subsequently archive additional emails (The Archive clicks would be ignored).

Just commenting here to indicate that this is still relevant for v116.0b7
I often end up with unread emails in my archive folder even though I never move emails to that folder unless I mark the emails as archived from the inbox. It's not a big issue since i can just "mark all as read" in the Archive folder, but I figured it's worth noting.

Same with thunderbird 115.2.0, latest beta or unstable. Reading and archiving unread mail will often be done before mail is marked as read by thunderbird if you selected to mark mail read as soon as opened. Mail should in all cases be first marked as read, then archived.

Confirming this, it has been a problem for a long time.

I don't think comment 1 is quite right, especially as it is generally worse if the mail server is being a bit slow.

When I archive, I've had long enough to glance at the message, i.e. it is at least significantly loaded if not completely. I believe there's something going on in the network layers communicating to the IMAP server - I'm guessing, the mark as read is still happening, but then the move for the archive comes in and somehow overrides that.

Status: UNCONFIRMED → NEW
Ever confirmed: true
See Also: → 541609
You need to log in before you can comment on or make changes to this bug.