22

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?

  • 1
    Just save the send email in your current folder and not in the send folder? – Ulrich Dangel Apr 11 '15 at 23:00
  • But what happens if I reply on an email from my phone? – aioobe Apr 13 '15 at 11:09
  • You should write up notmuch-mutt up as an answer and accept it. It works fine here! – Sparhawk Sep 30 '15 at 2:12
  • I have since stopped using mutt and now use mu4e (mu for emacs). I will go ahead and answer this question though. – Reed G. Law Sep 30 '15 at 2:34
4

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.

3

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.

2

The common way to see your own messages in the threaded display, which makes sense, is done by sending a BCC to you.

I use

my_hdr Bcc: my@my.email.tld

and it works great.

  • 7
    This looks like a plain ugly hack to me. Sending copies of all emails to myself just feels wrong. Especially if it is to accommodate for a poor viewing code in the email client. I often search my Gmail inbox and include things such as to:me. Using the approach you suggest messes this up. – aioobe Apr 7 '15 at 7:16
  • I did my own little investigation on this feature asked by OP and @aioobe and there seems to be no easy way to do that, so it's a good idea for a patch. There are already a number of patches written for mutt by various people. It would be a great feature to have, btw! – Arkadiusz Drabczyk Apr 7 '15 at 8:18
  • 2
    Yes. I've started looking into writing a patch. I see it as a last resort though. (Same story for a 'mute' feature.) – aioobe Apr 7 '15 at 8:32
1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.