Open bderembl opened 5 days ago
Cannot reproduce. This is what I get:
From: "Dirk-Jan C. Binnema" <djcb@djcbsoftware.nl>
To: Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
Subject: =?utf-8?Q?t=C3=A9st?=
Date: Wed, 03 Jul 2024 23:08:45 +0300
Message-ID: <87ed8az19u.fsf@djcbsoftware.nl>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: base64
dMOpc3QNCg==
Seems to be some encoding issue.
Did you try with emacs -Q
and only the barest minimal setup for mu4e
?
From what I see from your email, your subject is correctly encoded:
Subject: =?utf-8?Q?t=C3=A9st?=
while mine is not
Subject: tést
Do you have any idea why?
Yes, it's all correct here.
But, can you reproduce with a bare minimal mu4e? Use something like:
emacs -Q --eval "(progn (add-to-list 'load-path \"~/Sources/mu/build/mu4e\") (setq mu4e-mu-binary \"~/Sources/mu/build/mu/mu\") (require 'mu4e) (mu4e))"
(change the paths as necessary for your setup). Thanks.
yes same problem. I need to proceed a bit differently in this case though because there is no context and mu4e is not configured to send an email.
with emacs -Q, I need to
-compose a mail with "tést" in subject, save it as a draft, select that draft, reply to all, same issue as described above.
but I don't understand what you mean by " it's all correct here." since our subjects differ.
"It's all correct here" means "When I try this, the subject is correctly encoded"
We need to find out why it's not at your side. I suspect this goes a bit beyond mu4e... can you try some of the suggestions here? https://emacs.stackexchange.com/questions/7946/using-utf8-encoding-as-default-when-writing-emails
Thank you for your assistance. I have just tried all solutions proposed in your link but I get the same issue.
Could you clarify the sequence of events that happens when I save a mail as a draft?
In my case, the body of the message is correctly encoded but not the subject. Are these two elements treated separately?
Steps to reproduce:
Enter Compose mode write an email to yourself with Subject: tést body: tést
send it so far so good. I receive the email, all is fine(*).
Now, jump in Sent Folder and select the email you just sent W (reply to all)
in this newly created reply, the subject appears as
Subject: Re: t\303\251st![image](https://github.com/djcb/mu/assets/19313653/54a4793d-7d4d-457d-bb64-d18fc3781052)
If I try to send the email, I get the warning
Non-Printable characters found. Continue sending?
I can still send it but I receive an email with a messed up subject
Here is the raw email in the "Sent folder"
(*)Sidenote: I can even reply to this first email that I just received and in that case, everything is fine. The problem is only for the email that is stored in the sent folder
Environment
mu4e 1.12.5 emacs 29.3
Checklist
master
(otherwise please upgrade)