# Content-Type im Mail-Header sollte "markup=markdown" enthalten

**URL:** https://meta.discourse.org/t/content-type-in-mail-header-should-contain-markup-markdown/243179
**Category:** Feature
**Tags:** pr-welcome
**Created:** [28. Oktober 2022 um 12:55 UTC](https://meta.discourse.org/t/content-type-in-mail-header-should-contain-markup-markdown/243179 "2022-10-28T12:55:44Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![hmpffff](https://avatars.discourse-cdn.com/v4/letter/h/ce7236/32.png) [@hmpffff](https://meta.discourse.org/u/hmpffff)
#### Post date: [28. Oktober 2022 um 12:55 UTC](https://meta.discourse.org/t/content-type-in-mail-header-should-contain-markup-markdown/243179/1 "2022-10-28T12:55:44Z")

</div>

Moin,  
die E-Mails von Discourse-Gruppen fehlt der Hinweis, dass sie Markdown enthalten. Daher zeigt mein Mailclient nur den Plain-Text an, ohne ihn als Markdown zu rendern. Die einfache Lösung wäre, den Content-Type von  
`Content-Type: text/plain; charset=UTF-8`  
zu  
`Content-Type: text/plain; charset=UTF-8; markup=markdown`  
zu erweitern.

Bitte, bitte, bitte… 🙂

–  
Viele Grüße  
hmpffff

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [31. Oktober 2022 um 05:23 UTC](https://meta.discourse.org/t/content-type-in-mail-header-should-contain-markup-markdown/243179/2 "2022-10-31T05:23:44Z")

</div>

Ich halte dies für eine gute Funktionsanfrage. Wir fügen immer Markdown in den Text ein. Der zusätzliche Hinweis im MIME-Typ klingt nach einer guten Idee.

---

<div class="post-metadata">

### Author: ![hmpffff](https://avatars.discourse-cdn.com/v4/letter/h/ce7236/32.png) [@hmpffff](https://meta.discourse.org/u/hmpffff)
#### Post date: [2. November 2022 um 08:54 UTC](https://meta.discourse.org/t/content-type-in-mail-header-should-contain-markup-markdown/243179/3 "2022-11-02T08:54:37Z")

</div>

Wann können wir hoffen, dass es umgesetzt wird?

Und im Voraus vielen Dank

Zum Testen: Der von mir verwendete Mail-Client ist MailMate. Für Thunderbird gibt es ein MD-Addon (Markdown-here). AirMail kann MD verwenden und ich kenne im Moment keine anderen.

–  
Mit freundlichen Grüßen  
hmpffff

---

<div class="post-metadata">

### Author: ![hmpffff](https://avatars.discourse-cdn.com/v4/letter/h/ce7236/32.png) [@hmpffff](https://meta.discourse.org/u/hmpffff)
#### Post date: [4. März 2023 um 22:28 UTC](https://meta.discourse.org/t/content-type-in-mail-header-should-contain-markup-markdown/243179/4 "2023-03-04T22:28:20Z")

</div>

Gibt es noch Hoffnung, dass es umgesetzt wird? Das sollte doch ein Einzeiler sein, oder? 🙂

---

<div class="post-metadata">

### Author: ![hmpffff](https://avatars.discourse-cdn.com/v4/letter/h/ce7236/32.png) [@hmpffff](https://meta.discourse.org/u/hmpffff)
#### Post date: [16. April 2023 um 18:08 UTC](https://meta.discourse.org/t/content-type-in-mail-header-should-contain-markup-markdown/243179/5 "2023-04-16T18:08:24Z")

</div>

Es ist wirklich schade, dass diese leicht zu realisierende Funktion nicht umgesetzt wird. 😕

Meiner bescheidenen Meinung nach ist es sogar notwendig, dass Markdown-Text in E-Mails entsprechend formatiert wird.

Das Fehlen dieser Formatierung macht die Funktion, E-Mails mit MD zu versenden, völlig absurd. ☹

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [24. April 2023 um 05:23 UTC](https://meta.discourse.org/t/content-type-in-mail-header-should-contain-markup-markdown/243179/6 "2023-04-24T05:23:13Z")

</div>

Die Zeile ist hier:

> <https://github.com/discourse/discourse/blob/896707c7ea7a5ecdb066a62a92c0eb74ad83c84a/lib/email/sender.rb#L101-L101>

Fühlen Sie sich frei, einen PR zu senden, der das regelt, aber stellen Sie sicher, dass Sie die Testfälle ausführen, wahrscheinlich müssen einige geändert werden.
