Mail-app vs Thunderbird: Tags not synchronising properly, creating duplicate tags, etc

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / ā€œas availableā€ basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Tags are not ā€œfully interoperableā€ between NC Mail and other mail clients.
I’ve searched the internet, these forums and the Nextcloud documentation and there is no info on this problem that I can find.

I’m posting this here in the liklihood that is a config situation rather than a bug.
Although this problem seems bigger than I’d originally thought, I’m going to focus on my primary initial problem: Thunderbird tags are created as duplicate tags in NC Mail app and NC Mail App’s existing tags are not used/synched with Thunderbird. I’ll share below that there are some other symptoms of this non-interoperable problem.

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • Hub 10 v31.0.8
  • Operating system and version (e.g., Ubuntu 24.04):
    • Linux 5.15.0-153-generic x86_64
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • When starting to use Thunderbird
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Hub
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

Instead of using existing NC mail tags when another client tags an email, a new, identical tag appears in NC Mail instead.

I’ve been using NC Mail as my mail client for a couple months, using my existing IMAP account. It works fine. I settled in, created all my mail tags and have been organizing my mail with tags and archiving.

On another device, I’ve setup Thunderbird to use the same IMAP account. After some reading, I was under the impression that if I setup tags in Thunderbird exactly the same as in NC Mail, it would be fully interoperable between clients and the tagging from TB would properly work in NC. It’s does not on my server. Instead of using the existing tag in NC it creates a new identical tag in the NC tag menu and sets that instead. Further, the mails I’ve tagged in NC do not appear as tagged in TB. Further further, I’ve just realized if they were ā€˜fully interoperable’ Thunderbird would have my NC Mail tags already. Further further further, tagging a mail in NC mail app, does NOT tag it in any way in Thunderbird. The mail in Thunderbird remains untagged.

For example:
I have a tag called ā€œMusic Licenseā€ in NC Mail. I have already organized multiple email using this tag. In Thunderbird I setup a tag using it’s GUI with the exact same label: ā€œMusic Licenseā€. When I tagged a new mail in TB with this tag, instead of tagging the email in NC with the existing tag, it created a new identical tag in NC’s tag menu and set that instead:

Steps to replicate it (hint: details matter!):

  1. Create tags in NC Mail app. Use as desired.

  2. Install and configure same IMAP account with Thunderbird.

  3. Create tags in Thunderbird settings with identical labels as you have in NC.

  4. Explore archive folder in Thunderbird and notice that none of the NC tagged mail appears tagged. To rule out a ā€œno tagging before Thunderbirdā€ situation, mark a new mail in NC Mail app with any existing tag in NC Mail app. The tagging does not appear in Thunderbird on that email. However, if you use a tag that was placed into the NC tag menu by TB, it does appear tagged on TB.

  5. Tag an email with a tag in Thunderbird.

  6. Check the NC Mail tag menu and see that instead of tagging the email in NC with the existing tag, it has created a new identical tag with the same label in the tag menu and set that tag on the email.

What is expected instead:

What I would expect to happen is that any client with tags of the same label, use the existing tags and only create new tags in the client if they don’t already exist.

For example, if I tag an email with a tag called ā€œMusic Licenseā€ in Thunderbird, it should also use the same tag in Nextcloud called ā€œMusic Licenseā€.

Additionally:

  1. Thunderbird is adding tags to Nextcloud - but not vice-versa. Nextcloud tags should have appeared in Thunderbird instead of my having to create a whole new set of tags, which then get added as duplicates to Thunderbird.
  2. Tags created by Thunderbird in Nextcloud are not editible, and also appear invisible (White text on white background) So they are not useful.

There seems to be the ability for clients to talk about tags between themselves since I can use a Thunderbird tag in Nextcloud and the change appears in Thunderbird. It’s just not happening both ways. If I set a Nextcloud originated tag on an email in Nextcloud Mail App, it does not seem to send that information to Thunderbird in any way. If I tag an email with a Thunderbird originated tag, Thunderbird sends the change to Nextcloud, and somewhere that tag is added to Nextcloud’s tag menu and set on the email.

This behavior should work both ways and also not create duplicate tags.

Log entries

Nextcloud

There are no related log entries.

Conclusion

I realize this may be a configuration error somewhere, but I cannot find any settings or documentation or discussion about it. I’ve even looked in my mail server’s IMAP settings to see if there’s something I missed there. That’s why I am posting here instead of creating a bug report.

Also, I realize I *could just use Thunderbird tags from now on, (and probably will practically) since that organization task gets sent to Nextcloud, but that doesn’t solve the actual problem, it’s just a workaround.

If anyone has any ideas of settings or configuration to look for, please let me know.

Interesting finding :handshake:

I tested a little and see following

  • predefined tags like To-Do and later sync back and forth between local Thunderbird and Mail
  • custom tags created in TB appear in mail-app - but spelling differs: my all lower or all caps TB tag appears on mail-app with only first letter capitalised
    • I didn’t manage to assign this ā€œTBā€ tag in mail to another message, which was reflected in TB after short time
  • custom tags created in mail-app don’t appear in Thunderbird

I think there is an issue with tag representation, maybe there are also some IDs involved - more testing is required. For me it looks mail app adopts/shows tags assigned by TB but not other way round. If you create your tags from TB and set/unset them in mail tags sync in both directions.

Reading this article https://kb.mozillazine.org/Tags shows there are more moving parts like server-side support and this one https://bugzilla.mozilla.org/show_bug.cgi?id=344450 states even TB itself has problems to adopt tags defined in another profile!

So it looks it’s rather TB who doesn’t work well with tags created by other clients (at least by default)..

1 Like