Today I noticed something interesting on my Samsung Galaxy S2 aka. Epic 4G Touch: I’m unable to delete email messages using Android’s stock email application.
I did a bit of research and it’s definitely a bug. There are at least four bug reports I could find on Google’s Android project:
- 12282 IMAP email deletion not working
- 13195 Certain emails reappear after deletion
- 16293 IMAP does not work! — a little dramatic
- 16484 Email client reload all previously deleted mail
From what I gather, most complaints are coming from Samsung users (tablet and phone), but I found a few users that reported a similar bug on the Motorola XOOM, which appears to have been resolved. What’s happening is that Android lost track of the folder that keeps your deleted messages, so when you delete something, it disappears momentarily on the screen, assuming that the command executed successfully, but since Android doesn’t know where to put that deleted message, it simply keeps it in the inbox. Then when you refresh your inbox to retrieve new messages, it shows back up.
So what can we do about this? There are three workarounds I currently know about.
1. Move your email message to the trash as apposed to using the delete button
This is probabaly the least convenient option, as it involves more steps, but it is the quickest to implement. When you’re looking at your list of emails, press the menu key and then the move to folder button. Select the messages you want to “delete” and click on the move to folder button. Then choose your folder, whether it’s trash (will be stored locally) or something like INBOX.Trash (will be stored in trash on server), and your message(s) will be moved.
2. Use another email client such as K-9 Mail (free)
You basically download an entirely different application and setup all your email accounts on it. The delete command has been confirmed working in K-9 according to users who have my phone and switched. This application is available for free in the Android market and seems the most recommended.
3. Root your phone and edit a database file
This is the only permanent solution that let’s you keep your stock email application, however, before you can edit this file your phone must be rooted, otherwise you don’t have access/permissions to do so. If you browse to /data/data/com.android.email/databases/EmailProvider.db on your phone and open this file with a text editor, you can edit your specific email account and reassign that folder. There are more details in a comment on Android’s project page that discusse another bug report called Email app doesn’t handle IMAP folder prefixes properly, but that same user recommended this fix for being able to delete your messages.
I personally will probably use the first method until I get a firmware update. If the issue then isn’t fixed, I’ll consider option #2 or #3.
If someone knows of another solution, I’d love to hear it! As always, feel free to leave comments below.