Skip to content

“Only add tags to emails in the inbox” also processes messages delivered to other IMAP folders #863

Description

@pinamiranda

The problem

First of all, congratulations and thank you for creating ThunderAI. It is a very useful extension, and I have been using its automatic tagging feature to build an email-triage workflow. I appreciate the work that has gone into making this possible.

Let me explain my issue. I enabled the following ThunderAI option:

“Only add tags to emails in the inbox - If checked, the AI will only add tags to emails received in the inbox folder.”

However, ThunderAI continues to automatically process and tag new messages delivered to other IMAP folders.

In my setup, messages are moved by server-side filters configured in Zoho Mail to other IMAP folders, not by local Thunderbird filters. Therefore, they are delivered/synchronised directly into their destination folders and do not need to be moved from the Inbox by Thunderbird.

Steps to reproduce

  1. Configure a server-side Zoho Mail filter that moves matching incoming messages to an IMAP folder other than Inbox.
  2. In ThunderAI, enable automatic Add Tags.
  3. Enable “Only add tags to emails in the inbox”.
  4. Restart Thunderbird.
  5. Receive a message matching the Zoho server-side filter.
  6. Wait for Thunderbird to synchronise the destination folder.

Actual result

ThunderAI sends the message to the configured AI API and adds tags, even though the message was received in a non-Inbox IMAP folder.

Expected result

ThunderAI should not send the message to the AI API or add tags unless the folder reported by Thunderbird for the new message is the account’s actual Inbox folder.

Additional observations

  • The behaviour is not caused by a Thunderbird message filter running after ThunderAI.
  • The filtering and folder move happen on the Zoho Mail server.
  • The option is enabled and Thunderbird has been restarted.
  • The issue affects every synchronised IMAP folder that receives new messages, not only Inbox.
  • Tags are added successfully, confirming that these are actual automatic Add Tags operations.

This creates unnecessary API usage and sends messages that the user deliberately filtered out of the Inbox to the AI service.


Could you please confirm whether this is the intended behaviour?

My expectation is that, when this option is enabled, ThunderAI should completely ignore messages received in folders other than Inbox.

Please let me know if you need any additional information or if there is a debug mode I should enable to help investigate the issue.

Which Operative System are you using?

macOS Tahoe 26.5.2

Which version of Thunderbird are you using?

153.0.3

Which version of ThunderAI has the issue?

4.1.1.0

Which integration are you using?

OpenAI ChatGPT API

Anything in the Thunderbird console logs that might be useful?

Additional information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingstatus: ready for releaseWork complete in the next release branch.

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions