Restoring backup fails after looking for /Maildir/cur under public_html

Trying to restore a backup, it fails at the “Restoring mail files” stage with the message:

Restore failed : Failed to open /home/$username/public_html/Maildir/cur : No such file or directory

CEntOS 7, Virtualmin 6.07

Is this thing abandonware? shows a similar issue and a resolution. Does it work for you?

Doesn’t seem to be the same issue. In my case Virtualmin is trying to restore a maildir as a subdirectory of the virtual server’s public_html dir instead of where it came from, killing the restore job.