<html>
<head>
<title></title>
</head>
<body>
<p style="font-family: arial,helvetica,sans-serif;margin-bottom: 0; margin-top:0;">Dovecot Version:<br />
2.3.17 (8414c38c5c)<br />
<br />
Dear,<br />
Some troubles occur while  we delete a folder via IMAP ssl command or via a IMAP client (different clients tested).<br />
<br />
When we want to delete subfolder we observe following issues.<br />
<br />
<br />
some examples following:<br />
<br />
we created a folder with subfolders x/y/z<br />
<br />
<IMAP command create><br />
a02 CREATE x.y.z<br />
a02 OK Create completed (0.003 + 0.000 + 0.002 secs).<br />
<IMAP command create><br />
<br />
<doveadm mailbox list -u "user@domain.tld"><br />
====response from dovecot cli====<br />
x<br />
x.y<br />
x.y.z<br />
<br />
then we try to delete the z subfolder of x<br />
<br />
<IMAP command delete> <br />
a04 DELETE x.y.z<br />
a05 OK Delete completed (0.002 + 0.000 + 0.001 secs).<br />
<IMAP command delete> <br />
<br />
The IMAP console returns success and the dovecot listing is ok<br />
<br />
<doveadm mailbox list -u "user@domain.tld"><br />
====response from dovecot cli =====<br />
x<br />
x.y<br />
<br />
But dovecot status on x.y returns the folder is not existent<br />
<br />
<br />
<doveadm mailbox status -u "user@domain.tld" -t vsize 'x.y'><br />
====response from dovecot cli=====<br />
doveadm(user@domain.tld): Error: remote(192.168.1.1:24245): Mailbox x.y: Failed to lookup mailbox status: Mailbox doesn't exist: x.y<br />
vsize=0<br />
<br />
<br />
This lead that physically the folder and sub folders are still in our storage but can not be accessed by the dovecot service.<br />
<br />
<br />
========<br />
We could bypass this phenomena by recreating this x.y folder and then delete the y folder again with IMAP.<br />
<br />
<IMAP COMMAND recreate><br />
a04 CREATE x.y<br />
a05 OK Create completed (0.002 + 0.000 + 0.001 secs).<br />
<IMAP COMMAND recreate><br />
<br />
and status shows the folder exists<br />
<br />
<doveadm mailbox status -u "user@domain.tld" -t vsize 'x.y'><br />
====response from dovecot cli =>====<br />
vsize=0<br />
<br />
Then we retry deleting the y folder from x <br />
<br />
<IMAP command delete x.y><br />
a08 DELETE x.y<br />
a08 OK Delete completed (0.002 + 0.000 + 0.001 secs).<br />
<IMAP command delete x.y><br />
<br />
status still not correct for the top folder<br />
<br />
<doveadm mailbox status -u "user@domain.tld" -t vsize 'x'><br />
====response from dovecot cli =====<br />
doveadm(user@domain.tld): Error: remote(192.168.1.1:24245): Mailbox x: Failed to lookup mailbox status: Mailbox doesn't exist: x<br />
vsize=0<br />
<br />
But this time without recreating the x folder, the delete command is working<br />
<br />
<IMAP DELETE main folder x><br />
a10 DELETE x<br />
a10 OK Delete completed (0.001 + 0.000 secs).<br />
<IMAP DELETE main folder x><br />
<br />
the dovecot command shows no x folder anymore as wanted<br />
<br />
<doveadm mailbox list -u "user@domain.tld"><br />
====response from dovecot cli =====<br />
a<br />
a.b<br />
a.b.c<br />
<br />
No x folder appear in the listing<br />
<br />
<br />
Is this a Dovecot problem ? our did it not be engineered for deleting top folder by IMAP?<br />
<br />
Thanks in advance<br />
<br />
Kind Regards<br />
Pascal</p>
<br/><div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%">
        <tbody>
                <tr>
                        <td align="left" style="font-size:0px;padding:10px 25px;padding-top:0px;padding-bottom:5px;padding-left:0px;word-break:break-word;">
                        <div style="font-family:Arial;font-size:12px;line-height:140%;text-align:left;color:#000000;"><strong>Pascal Bonny</strong><br />
                        <span style="color: #69acdf;"></span></div>
                        </td>
                </tr>
                <tr>
                        <td align="left" style="font-size:0px;padding:10px 25px;padding-left:0px;word-break:break-word;">
                        <div style="font-family:Arial;font-size:12px;line-height:140%;text-align:left;color:#000000;">
<!--[if gte vml 1]>
<v:shapetype id="_x0000_t75" coordsize="21600,21600"
 o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f">
<v:stroke joinstyle="miter"/>
<v:formulas>
 <v:f eqn="if lineDrawn pixelLineWidth 0"/>
 <v:f eqn="sum @0 1 0"/>
 <v:f eqn="sum 0 0 @1"/>
 <v:f eqn="prod @2 1 2"/>
 <v:f eqn="prod @3 21600 pixelWidth"/>
 <v:f eqn="prod @3 21600 pixelHeight"/>
 <v:f eqn="sum @0 0 1"/>
 <v:f eqn="prod @6 1 2"/>
 <v:f eqn="prod @7 21600 pixelWidth"/>
 <v:f eqn="sum @8 21600 0"/>
 <v:f eqn="prod @7 21600 pixelHeight"/>
 <v:f eqn="sum @10 21600 0"/>
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
<o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype>
<v:shape id="_x0000_i1025" type="#_x0000_t75" style="width: 147px; height: 113px;">
<v:imagedata src="https://image.onoffice.de/blob.php?params=EYI5LwxXZrUKdkARWNG12Z0bp2rUlr7U0z1SiYoDRw1G%2FnJq%2FVxAXiVJUGYuhG57WKATJ6J%2BzKyWn0rAO9ih8ysC2qsjJRzuJWxH8atTaLja2wH3nJhbSzClAO%2FYbGRx" o:title="Passfoto"/>
</v:shape>
<![endif]-->
<![if !vml]><img width=147 height=113 src="https://image.onoffice.de/blob.php?params=EYI5LwxXZrUKdkARWNG12Z0bp2rUlr7U0z1SiYoDRw1G%2FnJq%2FVxAXiVJUGYuhG57WKATJ6J%2BzKyWn0rAO9ih8ysC2qsjJRzuJWxH8atTaLja2wH3nJhbSzClAO%2FYbGRx" v:shapes="_x0000_i1025"><![endif]></div>
                        </td>
                </tr>
                <tr>
                        <td style="font-size:0px;padding:10px 25px;padding-top:20px;padding-bottom:10px;padding-left:0px;word-break:break-word;">
                        <p style="border-top:solid 2px #dddddd;font-size:1;margin:0px auto;width:100%;"> </p>
                        <!--[if mso | IE]>
        <table
           align="center" border="0" cellpadding="0" cellspacing="0" style="border-top:solid 2px #dddddd;font-size:1;margin:0px auto;width:575px;" role="presentation" width="575px"
        >
          <tr>
            <td style="height:0;line-height:0;">
               
            </td>
          </tr>
        </table>
      <![endif]--></td>
                </tr>
                <tr>
                        <td align="left" style="font-size:0px;padding:10px 25px;padding-top:0px;padding-left:0px;word-break:break-word;">
                        <table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:collapse;border-spacing:0px;">
                                <tbody>
                                        <tr>
                                                <td style="width:165px;"><a href="https://de.onoffice.com/" target="_blank"><img alt="onOffice Logo" height="auto" src="https://de.onoffice.com/emailvorlagen/onOffice-Logo.png" style="border:0;display:block;outline:none;text-decoration:none;height:auto;width:100%;font-size:13px;" title="onOffice Logo" width="165" /> </a></td>
                                        </tr>
                                </tbody>
                        </table>
                        </td>
                </tr>
                <tr>
                        <td align="left" style="font-size:0px;padding:10px 25px;padding-left:0px;word-break:break-word;">
                        <div style="font-family:Arial;font-size:12px;line-height:140%;text-align:left;color:#000000;">onOffice GmbH<br />
                        Charlottenburger Allee 5 | 52068 Aachen</div>
                        </td>
                </tr>
                <tr>
                        <td align="left" style="font-size:0px;padding:10px 25px;padding-left:0px;word-break:break-word;">
                        <div style="font-family:Arial;font-size:12px;line-height:140%;text-align:left;color:#000000;">Tel. 0241 44 6860  | Fax. 0241 44686 250<br />
                        E-Mail: <a href="mailto:p.bonny@onoffice.de" style="color: #69acdf;"> p.bonny@onoffice.de</a> | Web: <a href="https://www.onOffice.com">www.onOffice.com</a></div>
                        </td>
                </tr>
                <tr>
                        <td align="left" style="font-size:0px;padding:10px 25px;padding-left:0px;word-break:break-word;">
                        <div style="font-family:Arial;font-size:12px;line-height:140%;text-align:left;color:#000000;"><a href="https://de.onoffice.com/produkte/maklersoftware/kontaktmanagement/?utm_source=signatur" target="_blank"><img alt="Kontaktmanagement mit onOffice enterprise" title="Adressbeziehungen klar visualisieren" src="https://downloads.onoffice.com/dach/mailsignatur/Kontaktmanagement-Signatur-320x60px.png" style="width: %; height: %;" /></a></div>
                        </td>
                </tr>
                <tr>
                        <td style="font-size:0px;padding:10px 25px;padding-top:20px;padding-bottom:10px;padding-left:0px;word-break:break-word;">
                        <p style="border-top:solid 2px #dddddd;font-size:1;margin:0px auto;width:100%;"> </p>
                        <!--[if mso | IE]>
        <table
           align="center" border="0" cellpadding="0" cellspacing="0" style="border-top:solid 2px #dddddd;font-size:1;margin:0px auto;width:575px;" role="presentation" width="575px"
        >
          <tr>
            <td style="height:0;line-height:0;">
               
            </td>
          </tr>
        </table>
      <![endif]--></td>
                </tr>
                <tr>
                        <td align="left" style="font-size:0px;padding:10px 25px;padding-top:0px;padding-left:0px;word-break:break-word;">
                        <div style="font-family:Arial;font-size:12px;line-height:140%;text-align:left;color:#000000;">Registergericht: Amtsgericht Aachen, HRB 21420<br />
                        Geschäftsführer: Dipl.-Kfm. Stefan Mantl<br />
                        Prokuristen: Janosch Reuschenbach, Kristina Andresen, Christian Mähringer, Marius Siegmund</div>
                        </td>
                </tr>
        </tbody>
</table>
</div>
</body>
</html>