From ae1578a5e2e1d22ebcc409f8c0ae09a6e10774fb Mon Sep 17 00:00:00 2001 From: Jakub Date: Tue, 20 Oct 2020 19:09:59 +0200 Subject: [PATCH] GODT-829 fix apple mail subfolders --- Changelog.md | 7 +++++-- internal/imap/mailbox.go | 5 ++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Changelog.md b/Changelog.md index 15845c03..e6d9ec1c 100644 --- a/Changelog.md +++ b/Changelog.md @@ -4,9 +4,12 @@ Changelog [format](http://keepachangelog.com/en/1.0.0/) ## Unreleased +### Fixed +* GODT-829 Remove `NoInferior` to display sub-folders in apple mail. + ## [Bridge 1.4.4] Forth -### Fixed +### Fixed * GODT-798 Replace, don't add, transfer encoding when making body 7-bit clean. * Move/Copy duplicate for emails with References in Outlook * CSB-247 Cannot update from 1.4.0 @@ -17,7 +20,7 @@ Changelog [format](http://keepachangelog.com/en/1.0.0/) ### Changed * Reverted sending IMAP updates to be not blocking again. -### Fixed +### Fixed * GODT-783 Settings flags by FLAGS (not using +/-FLAGS) do not change spam state. diff --git a/internal/imap/mailbox.go b/internal/imap/mailbox.go index 217842c5..746382dc 100644 --- a/internal/imap/mailbox.go +++ b/internal/imap/mailbox.go @@ -80,7 +80,10 @@ func (im *imapMailbox) Info() (*imap.MailboxInfo, error) { } func (im *imapMailbox) getFlags() []string { - flags := []string{imap.NoInferiorsAttr} // Subfolders are not yet supported by API. + flags := []string{} + if !im.storeMailbox.IsFolder() || im.storeMailbox.IsSystem() { + flags = append(flags, imap.NoInferiorsAttr) // Subfolders are not supported for System or Label + } switch im.storeMailbox.LabelID() { case pmapi.SentLabel: flags = append(flags, specialuse.Sent)