Emails forwarded with Apple Mail & iPhone Mail are not detected as forwards

AI-generated summary

A bug was reported regarding emails forwarded using Apple Mail or iPhone Mail not being detected as forwards in Discourse. Users noted that these emails appear as replies instead of proper forwards, making it difficult to respond to the original sender. The issue arises because Apple Mail renders forwards as replies, with a specific header format. The Discourse team acknowledged the problem, and it was confirmed to be a core Discourse issue. The bug has since been fixed in this pull request.

_Part of https://meta.discourse.org/t/paid-meta-request-for-ticketing-system-related-improvements/109401_

(This looks more like a bug for Apple Mail than for Discourse, but…)

Forwarded emails are rendering as expected in our instance… except when they are forwarded from Apple Mail or iPhone Mail.

Expected behavior:

  • New topic created by the staged user that sent the original message…
  • … followed by a first reply from the user (staged or not) that forwarded the original email.

Actual behavior with Apple Mail / iPhone Mail

  • New topic created by the user (staged or not) forwarding the message. The forwarded email appears as trimmed content. Expanding shows a text looking like a reply. There is no easy way to respond to the original sender.

And it looks like a reply because Apple Mail does seem to render forwards as replies. Excerpt from the raw message:

> Begin forwarded message:
> 
> From: E. <etc@etc.etc>
> Subject: Forward test 
> Date: February 7, 2019 at 12:52:15 PM PST
> To: bla@bla.bla
> 
> Will this one work?
> 
> Sent from my iPhone

The syntax used by the Apple Mail desktop app is the same.

5 likes

(Edited to clarify: the bug happens when you forward using Apple Mail / iPhone Mail. It does not happen when you forward emails from a “proper” email client.)

3 likes

This one also seems like something that perhaps should be handled in Discourse itself. What do you think @sam?

Yeah handling the way we handle forwarded emails is in scope for Discourse core.

@dan can you add this to your list.

3 likes

Thank you for investigating this problem. For now, I have removed the [paid] tag and I have moved this topic back to Contribute > Bug.

This has been fixed in this pull request.

Thanks for reporting the bug!

5 likes