Thanks for your replies!
I tried again with the simplest text message: I send the word "Blue" to
myself, then I forward the received message to my professional address,
without adding anything to it.
With (setq message-forward-as-mime t) the forwarded part looks like
this [here and below I doubled the # into ## to avoid quoted tags like <##mml>
being interpreted in this message to the list]:
--8<---------------cut here---------------start------------->8---
<##mml type=message/rfc822 disposition=inline>
From: "Victor A. Stoichita" <
svi...@svictor.net>
To: "Victor A. Stoichita" <
svi...@svictor.net>
Subject: orange
Blue
<##/mml>
--8<---------------cut here---------------end--------------->8---
And the raw forwaded message looks like this :
--8<---------------cut here---------------start------------->8---
From: "Victor A. Stoichita" <
svi...@svictor.net>
To: "Victor A. Stoichita" <
victor.s...@cnrs.fr>
Subject: Fwd: orange
References: <
87jz9sn...@svictor.net>
User-Agent: mu4e 1.12.8; emacs 30.0.93
Message-ID: <
87ed00n...@svictor.net>
MIME-Version: 1.0
Content-Type: message/rfc822
Content-Disposition: inline
From: "Victor A. Stoichita" <
svi...@svictor.net>
To: "Victor A. Stoichita" <
svi...@svictor.net>
Subject: orange
MIME-Version: 1.0
Content-Type: text/plain
Blue
--8<---------------cut here---------------end--------------->8---
In my company’s webmail, even this text/plain forwarded message is
displayed as an attachment.
I gather from your replies and tests that my company’s server has an
idiosyncrasy of its own that transforms the mml part into an attachment,
no matter what "disposition=inline" says.
There’s no chance to convince the IT staff to solve my problem as it’s
a big national research institute and this happens only to my
emails. I suspect that gnus tries to be semantically correct, while other
clients simply paste the contents of the forwarded message. This is what
mu4e used to do as well before relying on gnus. And it’s still what gnus
does when we reply to an email. I’d like to get that behavior back when
forwarding emails as well.
I tried with (setq message-forward-as-mime nil). This works fine if
I forward only text messages. In that case, the forwarded message is all
plain text.
But if I forward a message that has text and html parts, then gnus tries
to be correct again and includes both in the forward. For instance,
I write the words *bold yellow* in mu4e, I htmlize it and I send it to myself.
I receive a multipart message. Then I forward it to my business
address, adding simply the word "black". The message then looks like
this:
--8<---------------cut here---------------start------------->8---
To: "Victor A. Stoichita" <
victor.s...@cnrs.fr>
Subject: Fwd: green
From: "Victor A. Stoichita" <
svi...@svictor.net>
Message-ID: <
87o6z4m...@svictor.net>
black
-------------------- Start of forwarded message --------------------
From: "Victor A. Stoichita" <
svi...@svictor.net>
To: Victor A. Stoichita <
svi...@svictor.net>
Subject: green
<##multipart type=alternative>
<##part type=text/plain disposition=inline nofile=yes>
*bold yellow*
<##part type=text/html nofile=yes>
<p>
<b>bold yellow</b>
</p>
<##/multipart>
-------------------- End of forwarded message --------------------
--8<---------------cut here---------------end--------------->8---
Outlook makes a mess of this, as you can see in the attached screenshot.
The message up to "<##multipart …" is dispayed inline. The rest
appears as 3 attachments.
1. the text/plain "*bold yellow*" in ATT00001.txt
2. the html part with the words "bold yellow" written in bold in ATT00002.htm
3. the text/plain "--- End of forwarded message---" in ATT00003.txt
This is worse than anything for my collaborators since they now get
an incomplete message and 3 files to deal with.
Is there a straightforward way in mu4e/gnus to get the "reply" behavior also
when we forward an email? That is: to include the contents of the forwarded
message as if it were a replied message (no mml, no multipart, just
plain text)?
Sorry for the long mail, and thanks for reading this far!
Victor