pazz / alot

Terminal-based Mail User Agent
GNU General Public License v3.0
697 stars 165 forks source link

commands: thread: Reference existing message when forwarding #1593

Closed kbingham closed 2 months ago

kbingham commented 2 years ago

When forwarding a mail, the outgoing mail, and any follow up conversation becomes a disjointed thread. This removes the original context, and makes it harder to find and track while the conversation splits in two directions.

Add appropriate reference headers to the envelope when constructing a forwarded mail to ensure that the conversations continue to be related and therefore presented in the same thread with notmuch and alot.

Signed-off-by: Kieran Bingham kieran.bingham@ideasonboard.com

kbingham commented 2 years ago

I think the 'references' header probably fixes my issue and keeps it in the correct thread, but looking at other mails I had received as forwards, I saw other clients adding the X-Forwarded-Message-Id: header, so I've introduced that as well. This may or may not be desired though.