User should be able to choose the subscriptions, create new mailboxes and delete old ones. Default ones cannot be modified (INBOX, Drafts, Sent, Junk, Trash), but the rest would be listed:
Do we have possibility to subscribe/unsubscribe/create folders yet? Are they present in the IMAP lib?
Do we have possibility to subscribe/unsubscribe/create folders yet?
This isn't yet implemented.
Are they present in the IMAP lib?
Yes.
I've implemented mailbox creation and deletion.
Can you clarify the desired behavior for subscriptions?
Subscription would be needed in case a new message comes into a mailbox, to show a new message is present. With SIEVE filtering and sorting, this may be a must otherwise no one will know they got a message until they click on the mailbox. We do not show count of new messages on folders, hence subscriptions are not useful yet.
~sircmpwn, The way you've implemented create/delete, I think it would make sense to have a button [Subscribe] or [Unsubscribe] next to the [Delete] button on the mailbox view (for non-system mailboxes).
So I guess this boils down whether we should support subscriptions at all. We currently show all mailboxes, regardless of subscriptions.I can imagine having unsubscribed mailboxes shown grayed out in the mailboxes list. Those that are not grayed out, they show the count of unread messages contained.
Also, current mailbox creation creates it but it does not subscribe to the created mailbox, hence it will not appear on other mail clients such as Thunderbird. I would suggest auto-subscribe along with creation.
Thanks for clarifying. Now that we have #136 to cover this, I'm going to close this ticket.