While mutt has
set sort = threads to show threaded, "conversation" style messages, it doesn't display one's own replies in the threads. Instead, you have to change to the Sent folder to see your own messages. Is there any way to display one's own replies where they belong inside threads?
While mutt has
I found a solution that works for me even though it is not pretty.
set record = "+INBOX"
I just set record to my inbox, in that way the messages get threaded. It might not be ideal when I am the first sending an e-mail, but normally I will get an answer, so no issue.
I found that notmuch-mutt has some of the behavior I'm looking for. It defines a macro that looks at message-ids and can create a virtual folder to show an entire threaded conversation regardless of where each message lives. Out of the box it only works on search results. I'm not sure if the same behavior can be applied to regular mailboxes.
The common way to see your own messages in the threaded display, which makes sense, is done by sending a BCC to you.
my_hdr Bcc: firstname.lastname@example.org
and it works great.
You can make a patched mutt save your message to the current folder. To cite the FAQ:
How to save copies of outgoing/sent eMails to the current folder?
You need the current_shortcut patch (see PatchList). With that patch, "^" points to the current folder. You can use that folder in folder-hooks etc.
folder-hook . 'set record="^"'
Note: Make sure you have at least current_shortcut.2. Version 1 is broken.
It seems that the Ubuntu 16.04 package ships that patch.