roundcube / roundcubemail

The Roundcube Webmail suite
https://roundcube.net
GNU General Public License v3.0
5.84k stars 1.63k forks source link

Don't mark mail as read after delay if webpage is hidden to the user #9523

Closed n-goncalves closed 1 month ago

n-goncalves commented 3 months ago

Prerequisites

Proposal

What I propose is to use the Page Visibility API to stop the timer that sends the request to mark the mail as read the mail is hidden to the user.

Motivation and context

Currently, when you set a delay to mark a mail as read, if you open a new tab, the mail will still be marked as read after the delay has passed. That feels weird to me.

pabzm commented 3 months ago

It sounds sensible, but: Do you know of any email client that does this?

And would you be willing to contribute that feature?

alecpl commented 3 months ago

Is it really a big deal? While probably doable, I'm not sure we should complicate the code to handle this rare case.

n-goncalves commented 2 months ago

Sorry about the delay.

@pabzm I haven't seen any mail client do it and I can contribute towards that feature. However after thinking about it, I agree with @alecpl that it probably adds more complexity for not a lot of benefit.

It's fine with me if you decide to close this issue.

pabzm commented 1 month ago

Ok, without anyone really pushing it, this won't happen anyways, I guess. Thus I'm closing.