Environment: Aquamail Pro latest version, Android 5.0.2 on a Sony Xperia Z Tablet, mailbox concerned uses IMAP with automatic timed fetching.
I'm preparing to delete various emails, say I select the 2nd, 3rd, 4th and 6th newest emails for deletion.
Whilst I'm selecting these emails an automatic mail fetch happens. One new mail arrives and is shown as the 1st in the list.
However, the 2nd, 3rd, 4th and 6th emails are still selected BUT these are not the same emails as before since the whole listing has moved down by one with the new message at the top of the listing but the selection has not moved.
This means that if the delete operation is performed, the wrong emails get deleted - the 2nd, 3rd, 4th and 6th get deleted, but what were the 2nd, 3rd, 4th and 6th when they were selected are now in reality the 3rd, 4th, 5th and 7th.
The pictures show a simpler example of the same thing:-
Screenshot 1. Select the email for deletion
Screenshot 2. Another email comes in, the first item remains selected although it's not the same email that was selected. The mail that's supposed to get deleted is now unselected.
Screenshot 3. Do the deletion of selected emails, the wrong one gets deleted
This example makes it easy to see what's going on, but if many emails are being selected for deletion it's easy to miss this when it happens. This may also be an issue if a new email arrives during the deletion - I haven't tried testing for that.
When a mail fetch happens and new mail arrives while there is a selection either the selection needs to be adjusted automatically (if possible) or reset to no selection (if not possible to adjust)
Regards
Alan