Pin email/thread
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
It would make sense to implement this, as it is present in Microsoft Outlook. This screenshot is from the web application.
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.
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.
Thanks for checking!
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?
Sure!
Would this work only on Inbox /per account ?
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
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.
This feature should be opt in , with a (account, app setting ? to be discussed)
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.