<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>i tried to workaround for this with</div>

<div> </div>

<div>@@ -58,6 +59,13 @@<br/>
                if [ $exit_code -ne 0 -a $exit_code -ne 130 ]; then<br/>
                    echo "Unexpected error: doveadm expunge '$u'"<br/>
                    echo "Exit Code: $exit_code"<br/>
+                   if [ $exit_code -eq 68 ]; then<br/>
+                       if ! [ "$(ls -A /var/spool/mail/${u}/mailboxes/${mbx})" ]; then<br/>
+                           rmdir "/var/spool/mail/${u}/mailboxes/${mbx}"<br/>
+                       else<br/>
+                           echo "Error: Expected directory is empty!"<br/>
+                       fi<br/>
+                   fi<br/>
                    rc=1<br/>
                fi<br/>
            done</div>

<div> </div>

<div>but this empty directory is also replicated and would be recreated.</div>
</div></div></body></html>