<div>We have the same problem, with a twist. When Thunderbird deletes a folder, it is still shown by the GUI. Dovecot deleted the folder correctly, and the sunscriptions file is also correct. Some other times, on shared folders, Thunderbird refuses to
    delete; in this case, apple mail on iphone can delete successfully. This suggests that the problem is in Thunderbird's code. </div>
<div>
    <br />
</div>
<div>R </div>
<div>
    <br />
</div>
<div>
    <br />
</div>
<div>
    <div>On Mon, Feb 5, 2018 at 21:55, Remko Lodder <<a href="mailto:remko@FreeBSD.org" class="">remko@FreeBSD.org</a>> wrote:</div>
    <blockquote class="protonmail_quote" type="cite">
        <div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
            <div class="">
                <blockquote type="cite" class="">
                    <div class="">On 5 Feb 2018, at 17:32, Aki Tuomi <<a href="mailto:aki.tuomi@dovecot.fi" class="">aki.tuomi@dovecot.fi</a>> wrote:</div>
                    <div class="">
                        <div class="">
                            <blockquote type="cite" class="">On February 5, 2018 at 6:16 PM Gabriel Kaufmann <<a href="mailto:mailings@typoworx.com" class="">mailings@typoworx.com</a>> wrote:
                                <br class="">
                                <br class="">
                                <br class="">Doesn't anyone have an idea?
                                <br class="">
                                <br class="">It looks like Dovecot and/or Thunderbird simply "ignore" sub-folders of
                                <br class="">IMAP-Folder in Trash/ as they are also not shown in Trash-Folder.
                                <br class="">Sub-Folder for INBOX and other IMAP-Folders work perfect (using
                                <br class="">layout=fs Mailbox).
                                <br class="">
                                <br class="">Why doesn't this work for Trash?
                                <br class="">
                                <br class="">Best regards
                                <br class="">
                                <br class="">Gabriel Kaufmann
                                <br class="">
                                <br class="">
                            </blockquote>
                            <br class="">Can you try running this as root and provide output?
                            <br class="">
                            <br class="">doveadm -Dv -o mail_debug=yes mailbox delete -u username Trash/Somefolder
                            <br class="">
                            <br class="">Aki
                            <br class="">
                        </div>
                    </div>
                </blockquote>
            </div>
            <br class="">
            <div class="">
                <br class="">
            </div>
            <div class="">I had the same with Mac Mail.app. I decided to rm -rf the sdbox file on the master and replica and I won.</div>
            <div class="">It was persistant though and I think it had to do with the following:</div>
            <div class="">
                <br class="">
            </div>
            <div class="">I let my mail deliver in yearboxes, which have many many subfolders, some are just "placeholders". They appear different in the view.</div>
            <div class="">Regular mailboxes are "dark" in colors, placeholder boxes are "white" in colors (see attachment), where winkels is the "placeholder" folder and "action" is the regular mailbox in which mail gets delivered.</div>
            <div class="">
                <br class="">
            </div>
            <div class="">I could not get rid of those "winkels" kind of folders". Only by force removing them from the filesystem hierarchie.</div>
            <div class="">
                <br class="">
            </div>
            <div class="">Hope this helps a bit :)</div>
            <div class="">
                <br class="">
            </div>
            <div class="">Cheers</div>
            <div class="">Remko</div>
            <div class="">
                <br class="">
            </div>
            <div class="">
                <br class="">
            </div>
            <div class="">
                <br class="">
            </div>
            <div class="">
                <img apple-inline="yes" id="62DDA3FF-23E4-4397-8317-16192021B76E" width="269" height="53" src="cid:9D903B13-A2D8-4FA3-884B-58856F7ADBA3@lan.elvandar.org">  </div>
        </div>
    </blockquote>
</div>