Message threading in Mail.app

AI 生成的摘要

Users are discussing email threading issues in Apple’s Mail.app when receiving Discourse notifications. watchmanmonitor observes that while iPhone threads emails correctly, Mac OS Mail.app (10.8/10.9) fails to recognize threading despite proper In-Reply-To and References headers — speculating that the / in headers like <topic/27505@meta.discourse.org> may be the culprit. rumpelsepp suggests comparing with GitHub emails, which also use / in IDs, and points to the %{optional_re} template variable for adding "Re: " prefixes. watchmanmonitor confirms GitHub uses / too and successfully implements %{optional_re}. riking notes %{optional_re} is default, implying it was removed — though watchmanmonitor doubts this, suspecting they started before it was default. codinghorror directs users to peternlewis, who confirms the issue is a known Mail.app bug with no workaround other than forcing "Re: " in subject lines — which watchmanmonitor already did. rriemann adds that %{optional_re} is no longer default in the latest beta, and even resetting to default doesn’t fix threading in KMail, which also requires "Re: ". Overall, the consensus is that Mail.app’s threading logic is flawed and adding "Re: " remains the practical workaround.

Continuing the discussion from Emails are not threaded in Outlook 2013:

I’m seeing the my iPhone will thread emails I get from Meta, however my Mac OS Laptops won’t. The Mail.app in 10.8 and 10.9 fail to pick up on the relation.

In looking at the headers of messages, I see

In-Reply-To: <topic/27505@meta.discourse.org>
References: <topic/27505@meta.discourse.org>

and I wonder.. could the / be throwing off the threading? How could I test it with headers showing:

In-Reply-To: <topic27505@meta.discourse.org>
References: <topic27505@meta.discourse.org>

Has that been tried already?

One way to solve this is to put a Re: at the start of every email, but it’s a bit awkward when the first post is “re” I don’t know if a conditional "Re: " could be added…

Does github emails thread on this client? They use the same concept of IDs.

from https://meta.discourse.org/t/customize-subject-format-for-standard-emails/20801:

%{optional_re}[%{site_name}] %{optional_pm}%{optional_cat}%{topic_title}

Github uses / too

Example:

References: discourse/discourse/issues/806@github.com

Thanks for pointing out the how-to topic, I’ve implemented %{optional_re} Nice!

It’s there by default… which means you removed it at some point.

I doubt I removed it.. I’ve been using Discourse for a long time and love it :heartpulse: (Despite all my posting about desired changes.) I suspect I started the discourse forums I run before the optional re was a default, but it’s hardly worth digging up.

I believe you can ask @peternlewis who has extensive experience with this.

Consensus was this is a bug in mail.app with no known workaround other than the re: thing.

Yes, I believe @watchmanmonitor found the relevant topic and adjusted the subject line config to always start with Re: which makes Mail happy, so its all good.

The %{optional_re} is not part of the default anymore. I have the last beta. @riking

I would have expeced that a click on reset would resolve my issue of non-threaded mails. Hower, I was already on the default. I’m using KMail from KDE and the Re is required.