djcb / mu

maildir indexer/searcher + emacs mail client + guile bindings
http://www.djcbsoftware.nl/code/mu
GNU General Public License v3.0
1.62k stars 391 forks source link

[mu4e bug] "replied" flag is not set after sending a reply #2748

Open vladmaraev opened 3 months ago

vladmaraev commented 3 months ago

Describe the bug

I don't quite understand the mechanics of setting "replied" flag and In-Reply-To field, but I don't see In-Reply-To field while composing a message (I think I could see it in previous versions of mu4e). After sending, the incoming message doesn't get flagged with "replied" flag.

When examining raw contents of incoming messages I see that: For incoming message Message-ID: AS8P251MB02623BAA6AD3F7419E1A9ED1CB8F2@AS8P251MB0262.EURP251.PROD.OUTLOOK.COM For my reply: In-Reply-To: AS8P251MB02623BAA6AD3F7419E1A9ED1CB8F2@AS8P251MB0262.EURP251.PROD.OUTLOOK.COM (REDACTED's message of "Thu, 22 Aug 2024 15:08:39 +0000")

In the thread view these messages look as they should.

How to Reproduce

It happens each time I reply (mu4e-compose-wide-reply).

Environment

Checklist

djcb commented 3 months ago

The In-Reply-To field is hidden by default; unhide it through the "Field" menu or by changing mu4e-draft-hidden-headers.

vladmaraev commented 3 months ago

Thanks for you reply. I didn't realise this. But now when I see it it is empty.

vladmaraev commented 3 months ago

Sorry I was mistaken. Now I can see it. But still, I don't get the 'replied' flag after the reply gets sent. I will try my best to further debug it myself.

vladmaraev commented 2 months ago

Just to mention that the issue is still present, even though In-Reply-To matches parent Message-ID.

djcb commented 1 month ago

Setting the flags of the "parent" message when replying/forwarding is handled in mu4e--set-parent-flags. Are you able to see if it is called after you reply?

And can you find the "parent" message, with something like:

mu find msgid:AS8P251MB02623BAA6AD3F7419E1A9ED1CB8F2@AS8P251MB0262.EURP251.PROD.OUTLOOK.COM
vladmaraev commented 1 month ago

Yes, I can find it. I tried with a more recent reply, and can find the message referred to from "In-Reply-To" field.