Moritz Poldrack referenced this ticket in commit 466888d.
Do we just assume that the cursor is in the last place? In that case this would be a rather simple fix.
I can't reproduce this with my test account on your server, ~poldi1405 can you try reproducing again?
With the following structure, when running
Abc, the entireMaildir is deleted by aerc.
┌INBOX └─>┌Abc └─>┌def └─>ghi
Important info: this structure was created by a sieve operation, so
defhave not been initialized and hence, when
cd-ing into them, the following error is thrown:
Personal: open /home/moritz/.mail/moritz.sh/INBOX/Abc/new: no such file or directory
The deleted directory is
/home/moritz/.mail/moritz.sh, which is the root of the maildir
In my opinion it should either just not delete at all or – preferably – the invalid directory that is selected.