I’m running into a reproducible issue with a Gmail account (IMAP) in eM Client.
Symptom: Deleted messages remain visible in Inbox (and “All Inboxes”), tagged with a folder/label called [Imap]/Trash. I confirmed via Gmail’s own web interface that [Imap]/Trash is a real Gmail label — not a display artifact — and it’s being applied to messages that also retain the Inbox label, so they never actually leave Inbox from Gmail’s perspective.
What I’ve tried:
- Corrected the account’s Special Folders → Trash mapping from generic “Trash” to “[Gmail]/Trash” — this fixes the tag temporarily but reverts back to plain “Trash” after any account resync, account remove/re-add, or full local cache reset (%APPDATA%\eM Client wipe).
- Added [Imap]/Trash to Ignored Paths — does not prevent the label/folder from being recreated on the Gmail server.
- Ran the folder-level Repair tool on Inbox — clears the immediate symptom but the label reappears on subsequent syncs.
- Fully removed and re-added the account, and performed a full local database wipe — both resulted in the same broken state being recreated (Trash reverting to unprefixed “Trash”, [Imap]/Trash label regenerating in Gmail).
Ask: This looks like “Automatically detect special folder names” is misidentifying Gmail’s Trash folder and creating a duplicate/incorrect label ([Imap]/Trash) on the server rather than correctly mapping to [Gmail]/Trash. Given it survives account removal and full cache resets, the root cause seems to be in how the account is re-detected/initialized rather than local cache corruption. Could someone confirm whether this is a known issue, and whether there’s a way to permanently disable “Automatically detect” so a manual Trash mapping actually persists?
Happy to provide eM Client version number, diagnostic logs, or screenshots on request.
Hi @filipeteles, the Automatic detection can sometimes get things wrong, especially with some unusual setups.
Having the Trash as a subfolder is definitely something that can throw the detection off. But if you turn off the automatic detection (uncheck the checkbox) and instead manually specify the correct folder then the program should NOT try to autodetect on next sync.
Based on your description, I am not sure if you are intentionally turning the auto-detection back on (if so, why?) or if the setting is mysteriously turning back on its own? If it turns back on its won that would definitely be a bug we’d need to know more about (version of the app and your system) so we can look into it.
Also, are you deleting the [Imap]/Trash label after you make the change?
Another thing that could help in the log run would be to delete the [IMAP] and [Gmail] labels on the webmail, as these are often artefacts from older mail apps and not actualy required labels you need to have. And without them the autodetection should also work much better, so you might not even need the manual workaround.
Hi Olivia, thanks for the details.
Before I go through the manual workaround, could you spell out the exact steps — the folder mapping settings, exactly what to uncheck, and what to delete on the Gmail webmail side ([IMAP]/[Gmail] labels)? Want to make sure I do it right in one pass rather than trial-and-error and risk breaking something else.
Also, any idea why auto-detection would reset itself on sync rather than staying off once unchecked? Curious if that’s a known bug or specific to certain account setups.
Hi Filipe,
I am not aware of any current issue reports of the auto-detection changing back on its own, which is why I was asking if that is what’s happening to you.
Even if you leave the checkbox “unchecked,” is it really turning back on for you? If so, that WOULD be a bug, which is why I need additional details on your current app version (help>About) and your system/OS version, so we can look into it.
As for the changes I would recommend as the simplest for your issue:
- Remove the Gmail account from eM Client Accounts section
- Go to https://mail.google.com/mail/u/0/#settings/labels for your affected Gmail account.
- Scroll down to your custom labels and remove the [Gmail] and [IMAP] labels (or any labels in brackets - we also often see [Google Mail] as one of those common artefacts from older mail apps)
- Set up your account again in eM Client - I believe the auto-detection should now work correctly.