mail icon indicating copy to clipboard operation
mail copied to clipboard

Pin email/thread

Open ChristophWurst opened this issue 7 months ago • 11 comments

Feature Request

As a Nextcloud Mail user I want specific messages to not move out of sight.

Implementation

Sort flagged (favorite) messages on the top of mailboxes

Work packages

  • [x] Add Opt -in app wide setting to enable this feature ( called Sort favorites up top) https://github.com/nextcloud/mail/pull/12124
  • [x] Add a new section on top of each mailbox (even priority ) https://github.com/nextcloud/mail/pull/12111
  • [x] Section should be called Favorites
  • [ ] Fix reactivity issue ( toggling favorites doesn't update envelope lists) #12112

Follow-ups

Out of scope

ChristophWurst avatar May 05 '25 07:05 ChristophWurst

It would make sense to implement this, as it is present in Microsoft Outlook. This screenshot is from the web application.

Image

Sev6n avatar Jun 17 '25 18:06 Sev6n

What I'm unsure about is interoperability. There are standard IMAP flags like seen, flagged, junk, deleted, and there are some common perflags $label1 to $label5 (important, later, work, etc). But nothing for pinned as far as I know. So pinning would only show in Mail, and not in any other client connected to the same IMAP server.

@Sev6n do you also have a non-microsoft email account inside Outlook maybe? I wonder if they still offer pinning, and if they write that to IMAP.

ChristophWurst avatar Jun 18 '25 06:06 ChristophWurst

I'm sure it will be fine to have the Pin feature client-specific.

I used a non-microsoft email account in Microsoft Outlook, and it the Pin message feature seems to only persist in the Outlook interface.

Sev6n avatar Jun 18 '25 12:06 Sev6n

Thanks for checking!

ChristophWurst avatar Jun 18 '25 12:06 ChristophWurst

You're welcome!

Since this is a client-related feature, this should be straightforward to develop. Would you like me to create a visual mock-up and provide some example code of how it would work?

Sev6n avatar Jun 18 '25 13:06 Sev6n

Sure!

ChristophWurst avatar Jul 04 '25 13:07 ChristophWurst

Would this work only on Inbox /per account ?

hamza221 avatar Nov 13 '25 10:11 hamza221

I'll give you a personal briefing later so you can update the ticket and bring it into shape https://github.com/nextcloud/groupware/blob/main/resources/task_ticket_structure.md

ChristophWurst avatar Nov 13 '25 10:11 ChristophWurst

New specs from @jancborchardt

  • If "Sort favorites up top" is enabled, there’s a separate section "Favorites" on top of each folder, kind of like the date sections
  • If there’s no favorites in that folder, just don’t show the section at all
  • Could be same in priority inbox, for mails which are both priority and favorited? (aka deemed to be important automatically as well as manually)

so regular folders will have a list with Pinned, then Today, Yesterday etc. Priority inbox will have Important or pinned, then Others lists.

ChristophWurst avatar Dec 01 '25 09:12 ChristophWurst

This feature should be opt in , with a (account, app setting ? to be discussed)

hamza221 avatar Dec 01 '25 09:12 hamza221

Probably a global app setting is fine, as we have sorting and layout options in there too.

Detail, it should be "Sort favorites up top" and the section called "Favorites". Not "Pinned", so it's consistently named.

jancborchardt avatar Dec 01 '25 12:12 jancborchardt