'Force emails not to be grouped into conversations

My website sends emails to me with the same subject and they are being grouped into conversations even if I delete old ones (Mail, Gmail). I know I can change the subject to prevent this, but is there a header or something else that can be added to do this without forcing unique subject lines?



Solution 1:[1]

On the top of my head, there are two methods to avoid threading:

  • set the SMTP header X-Entity-Ref-ID with any value. This is what Google+ notifications do.
  • change the sender email (you can use From: [email protected]). This is what Facebook notifications do.

The threading will be made if you force it with Reference or Reply-To.

Solution 2:[2]

The situation has changed since 2019.

I found a solution in https://workspaceupdates.googleblog.com/2019/03/threading-changes-in-gmail-conversation-view.html.

Setting a header of the form References: <[email protected]>, with a unique UUID for each email is enough to solve this.

Tested a few times today and I confirm it works.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 Basj