<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>I have the same Problem with thunderbird on Linux.</p>
    <p>It looks like thunderbirds imap-implementation is a little bit
      broken. Even if thunderbird tried once to get a mailbox, it
      persists in the profile.</p>
    <p>I have FS-Layout in dovecot. Thunderbird somtimes try to get a
      submailbox with INBOX/firstlevel^secondlevel^thirdlevel</p>
    <p>Then it doesn't find this mailbox on the server (for sure, it's
      INBOX/firstlevel/secondlevel/thirdlevel) tb tries to get next</p>
    <p>INBOX/firstlevel^^secondlevel^^thirdlevel</p>
    <p>and then INBOX/firstlevel^^^^secondlevel^^^^thirdlevel and so on.
      And on each first login, tb tries to get all of them again and
      again...</p>
    <p><br>
    </p>
    <p>Go to $TB-profilefolder/ImapMail/ and delete all of the *.msf
      files and search for the wrong mailboxes, described above... you
      will finde them.</p>
    <p>And they are probably also in some config-files in the profile.
      user.prefs i think, and panacea.dat i could find them.</p>
    <p>Delete all of the entries (be careful). Close and restart
      firefox. Good look, the phantom-folders are gone.</p>
    <p><br>
    </p>
    <p>jakob<br>
    </p>
    <br>
    <div class="moz-cite-prefix">Am 06.02.2018 um 07:15 schrieb Rupert
      Gallagher:<br>
    </div>
    <blockquote type="cite"
cite="mid:CgQyqF8tnYsJTY5IYrka31I_tZEPqk5NVreJsuEZzAEqjBj3Wc53Fne4eqmz1ZQhPhHyjzmj2BHbnAAvTnfaJfWqrz184xdq2lfKmM4ylF4=@protonmail.com">
      <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=""
            moz-do-not-send="true">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=""
                    moz-do-not-send="true">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=""
                        moz-do-not-send="true">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"
                src="cid:part4.D56D9D14.B09BDFC6@nurfuerspam.de"
                class="" height="53" width="269">  </div>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </body>
</html>