Unfortunately, the Stock Android Email app has the IMAP folder names hard-coded in the application, they cannot be changed by the user. The app expects the folders to have the following names:
- Inbox
- Outbox
- Drafts
- Trash
- Sent
- Junk
If your IMAP server uses different names, they are not properly synchronized with the Email app. There are two solutions to this:
- Use different Email app
- Get Android source code, modify names in Email application, rebuild Email application and replace original Email application on your device with the modified one
However, the second solution (of course) requires a rooted device and basic knowledge of how to build an Android application. But, I can say, I tried it and it works. The file where the names are stored is <Android-source-code-root>/packages/apps/Email/res/values/strings.xml
. See the following excerpt:
<!-- Do Not Translate. This is the name of the "inbox" folder, on the server. -->
<string name="mailbox_name_server_inbox" translatable="false">Inbox</string>
<!-- Do Not Translate. This is the name of the "outbox" folder, on the server. -->
<string name="mailbox_name_server_outbox" translatable="false">Outbox</string>
<!-- Do Not Translate. This is the name of the "drafts" folder, on the server. -->
<string name="mailbox_name_server_drafts" translatable="false">Drafts</string>
<!-- Do Not Translate. This is the name of the "trash" folder, on the server. -->
<string name="mailbox_name_server_trash" translatable="false">Trash</string>
<!-- Do Not Translate. This is the name of the "sent" folder, on the server. -->
<string name="mailbox_name_server_sent" translatable="false">Sent</string>
<!-- Do Not Translate. This is the name of the "junk" folder, on the server. -->
<string name="mailbox_name_server_junk" translatable="false">Junk</string>
I have no idea why Google decided to make the names unchangeable withing the app. Probably they want to force people to use Gmail (I was told, the folder names work with Gmail).
If anybody with programming skills is motivated, I would love to see a patched version of the Email app, where the names of the folders can be adjusted in some configuration dialog. Should not be a huge thing to implement, I just did not have the time for it.