GNOME Bugzilla – Bug 768422
Support NAMESAPCE extension (RFC 2342)
Last modified: 2017-11-09 13:33:13 UTC
NAMESPACE will tell us not only what the personal name space hierarchy separator is up front - which has been problematic in the past (e.g. Bug 766509, Bug 757166), but also the prefix in which to create new mailboxes (e.g. Bug 726866) without needing to guess "" vs "INBOX." vs something else. Has support from nearly all IMAP server implementations. Covered by RFC 2342 (https://tools.ietf.org/html/rfc2342) and RFC 4466 (https://tools.ietf.org/html/rfc4466).
Just pushed a WIP to wip/768422-namespace-support, still need to refine the Imap.Account/Imap.ClientSession split a bit, want to update the engine to only pay attention to the INBOX and personal namespaces (i.e. ignore shared or other user mailboxes for now until maybe Bug 713449 is fixed) and would like to fix Bug 726866 here as well. See Bug 789805 for bringing shared folders back.
This was fixed in on master in commit 2af9412. I relented on limiting the engine to just mailboxes in the personal namespace, do to that properly I think we'd need to introduce a notion of folder groups, and that's getting way out of scope. So will leave that to Bug 789805.