~rjarry/aerc

aa7b35dc49444ebb11497101a2a11896b4a4567f — Robin Jarry 5 months ago de7baa3
Explain how to induce threading of forwarded msgs (fixup)

I applied the wrong version of this patch...

Fixes: de7baa370c93 ("Explain how to induce threading of forwarded msgs")
Signed-off-by: Robin Jarry <robin@jarry.cc>
2 files changed, 10 insertions(+), 12 deletions(-)

M configurations/index.md
M configurations/threadfwd.md
M configurations/index.md => configurations/index.md +4 -4
@@ 2,8 2,8 @@
title: "aerc-wiki: Configurations"
---

- [Colors](configurations/colors.md)
- [Notmuch](configurations/notmuch.md)
- [Style sets](configurations/stylesets.md)
- [HTML quoting in replies](configurations/htmlquote.md)
- [colors](configurations/colors.md)
- [notmuch](configurations/notmuch.md)
- [style sets](configurations/stylesets.md)
- [html quoting in replies](configurations/htmlquote.md)
- [Induce threading of forwarded messages](configurations/threadfwd.md)

M configurations/threadfwd.md => configurations/threadfwd.md +6 -8
@@ 3,15 3,13 @@ title: "aerc-wiki: Configurations/Induce threading of forwarded messages"
---

If you want that the messages that you forward appear threaded to the original
messages being forwarded, you can add these headers to your forwarding template
(for instance, `forward_as_body`):

message being forwarded, you can add the following header to your forwarding
template (for instance, `forward_as_body`):
```
In-Reply-To: {{.OriginalHeader "Message-Id"}}
References: {{ if (not (eq (.OriginalHeader "References") ""))}}{{.OriginalHeader "References"}} {{end}}{{.OriginalHeader "Message-Id"}}
```

Please note that, according to the RFC, `In-Reply-To` header should be used only
for replies (although it seems a common practice to use it too for forwards).
Also note that most likely the receiver won't have any of the mails referenced
in these headers.
Please note that the [RFC](https://www.rfc-editor.org/rfc/rfc5322#section-3.6.4)
only recommends adding this header to replies (although some clients seem to
add it to forwarded messages too). Also note that most likely the receiver won't
have any of the mails referenced in these headers.