panic when deleting email from other client
I was with meli open and, as I have no idea how to delete emails for its UI (I just get "unimplemented"), I deleted one email from my cellphone mail client. This was the sole email being listed in open folder in meli, as soon as I deleted it in my cellphone, meli panicked with:
thread 'meli-executor-6' panicked at 'removal index (is 1) should be < len (is 1)', src/liballoc/vec.rs:1062:13
I've located the cause here
IMAP server sent
EXPUNGE 1, and here:
self .uid_store .msn_index .lock() .unwrap() .entry(mailbox_hash) .or_default() .remove(n.try_into().unwrap());
The vector is 0-indexed but message sequence numbers in IMAP start from 1. The fix is to subtract 1 from the index.
Deleting a branch is permanent. It CANNOT be undone. Continue?