# Mail-Prioritäts-Header auf Liste gesetzt

**URL:** https://meta.discourse.org/t/mail-precedence-header-set-to-list/175943
**Category:** Support
**Created:** [13. Januar 2021 um 06:01 UTC](https://meta.discourse.org/t/mail-precedence-header-set-to-list/175943 "2021-01-13T06:01:10Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Andro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andro/32/173721_2.png) [@Andro](https://meta.discourse.org/u/Andro)
#### Post date: [13. Januar 2021 um 06:01 UTC](https://meta.discourse.org/t/mail-precedence-header-set-to-list/175943/1 "2021-01-13T06:01:10Z")

</div>

Ich versende eingehende E-Mails manuell von Gmail. Discourse lehnt sie jedoch mit der Beschwerde ab, dass der Header „Precedence“ auf „list“ gesetzt ist und die E-Mail automatisch generiert wurde – was nicht stimmt: Ich habe sie selbst geschrieben.

Aus den Kopfzeilen:

Auto-Submitted: auto-generated  
Precedence: list  
List-ID: The Jackrail | Test \<test.jackrail.space\>  
List-Archive: [https://jackrail.space/t/a-test-please-work/579](https://jackrail.space/t/a-test-please-work/579)  
List-Post: [mailto:replies+591d4708be667d02b1c5826953683fba@jackrail.space](mailto:replies+591d4708be667d02b1c5826953683fba@jackrail.space)

Was ist hier los?

---

<div class="post-metadata">

### Author: ![steinjer](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@steinjer](https://meta.discourse.org/u/steinjer)
#### Post date: [14. Februar 2021 um 18:48 UTC](https://meta.discourse.org/t/mail-precedence-header-set-to-list/175943/2 "2021-02-14T18:48:17Z")

</div>

Seit dem aktuellen Release erfordern E-Mail-Antworten immer eine Antwort an ‘Reply to list’. Eine einfache Antwort durch Klicken auf ‘Reply’ im E-Mail-Programm funktioniert nicht mehr.

Neu in Mailheader ist diese Zeile:  
`List-Post: <mailto:replies+0d953a3a06191ea09a38f1f4f62129c4@forum.example.org>`

Da dies im Code hinzugefügt wurde (geänderte if-Bedingung), funktioniert unser Discourse als Mailinglisten-Server, obwohl wir diese Option nicht ausgewählt haben.

> <https://github.com/discourse/discourse/pull/11633/files#diff-ac999c2a2be09adb4b7bc5f9ef0852bbc00cf2b3483b3f967eb5bb70cfb9f44d>
>
> Fixes a rare race condition causing the \`Imap::Sync\` class to create an incoming… email and associated post/topic, which then kicks off the PostAlerter to notify others in the PM about a reply in the topic, but for the OP which is not necessary (because the person emailing the IMAP inbox already knows about the OP). Basically, we should never be sending the group SMTP email for the first post in a topic.
> 
> Also in this PR:
> 
> \* Custom attribute accessors for the to/from/cc addresses on \`IncomingEmail\`, to parse them from an array to a joined string so the logic for this is only in one place.
> \* Store extra detail against the \`IncomingEmail\` created in \`GroupSmtpMailer\`
> \* regex test Mail header Reply-To as string instead of Field, which fixes \`warning: deprecated Object#=~ is called on Mail::Field; it always returns nil\`
> \* Add DEBUG\_IMAP to log all IMAP logs as warnings for easier debugging
> \* Changed the Rails logging to \`ImapSyncLog\` in the \`GroupSmtpMailer\`

---

<div class="post-metadata">

### Author: ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)
#### Post date: [14. Februar 2021 um 22:57 UTC](https://meta.discourse.org/t/mail-precedence-header-set-to-list/175943/3 "2021-02-14T22:57:57Z")

</div>

Meinst du, dass du ‘Allen antworten’ musst? Ich bin mir nicht sicher, was du mit ‘Antwort an die Liste’ meinst. Welcher Code in diesem PR hätte dieses Verhalten geändert? Die einzige if-Bedingung, die sich geändert hat und die ich sehen kann, ist diese:

> <https://github.com/discourse/discourse/blob/8da9a3f82f341c081b340d0c0be3358eb0f2d348/lib/email/sender.rb#L176-L179>

Aber ich kann nicht erkennen, wie sich das Verhalten nur durch das Hinzufügen von to\_s geändert haben sollte?

---

<div class="post-metadata">

### Author: ![steinjer](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@steinjer](https://meta.discourse.org/u/steinjer)
#### Post date: [15. Februar 2021 um 07:58 UTC](https://meta.discourse.org/t/mail-precedence-header-set-to-list/175943/4 "2021-02-15T07:58:12Z")

</div>

Ich denke, die geänderte Bedingung der if-Anweisung führt nun zu einer neuen Nachrichtenüberschrift ‘list-post’.

Beispiel für eine neue E-Mail von unserem Discourse, angezeigt in Thunderbird:  
 ![grafik](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/meta/optimized/3X/7/1/71f3f95e708ab28caba2a0855cce6d5c657c61cb_2_690x36.png)  
Und die E-Mail-Header-Zeile lautet:  
List-Post: [mailto:replies+6e23071765f50da1c819aba7f2ffb386@forum.sol....](mailto:replies+6e23071765f50da1c819aba7f2ffb386@forum.sol....)

Vor dem neuen Release (keine Antwortliste wird angezeigt):

 ![grafik](https://global.discourse-cdn.com/meta/original/3X/3/1/31c979e70845bdf04b534387de1afda1fa071262.png)  
Und der E-Mail-Header enthält keine Zeile mit „List-Post“.
