-
Notifications
You must be signed in to change notification settings - Fork 391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[mu4e bug] Email forwarded via Office 365 does not include new text and has extra attachment (mime issue?) #2808
Comments
Can't reproduce, when I forward that message, I get a correct one back. The draft you have looks reasonable as well, at a first glance. I get:
etc. In your forwarded messages there are all kinds of things that are not from Mu4e. So perhaps the mail-server is mishandling the message? Can you reproduce with a different mail-server? |
Thanks for the feedback. It turns out that the issue only happens when forwarding the email using smtp-mail.outlook.com, i.e., using Office 365. Using gmail's smtp does not exhibit the problem, nor does it show up when forwarding the email using the Office 365 web app. Googling on the name of the extra attachment (att00001.txt) learnt that this kind of issue seems to occur for emails having a more complex MIME structure (e.g., attachments) that somehow does not adhere to what Office 365 expects, causing the latter to re-interpret the MIME content. I tried manually removing the
I tried some other things, like removing the HTML part (which I typically never need to forward), etc. but I always end up with either the original problem or the one above. The only workaround seems to be to somehow extract the plain text and the original attachments, yanking them right before the multiparts, then discarding the multiparts altogether. Yet, this is not really feasible on a daily basis, nor can I ditch Office 365 (work-related). Is it possible that some delimiter is missing in the MIME (multi)part of the email, or perhaps an encoding issue (e.g., the usage of quoted-printable in email-forwarded.txt)? |
Just compared the email forwarded from mu4e to the one forwarded from the web interface of Office 365. It seems like the latter merges the new text from the forwarded email with the original plain and html message text (instead of putting the new text outside the multiparts), like this:
|
I guess there are few things you could try -- different values for |
Setting With |
Hmm, not sure we can help much in this case. It seems like some specific problem with that particular mail-server; moreover, mu4e is re-using the Emacs built-in functionality for that (in Gnus). Now, I suspect many other e-mail clients can interact with that mail-server directly, so it may be interesting to try the simplest possible forward message with a client that gets the expected result vs what you get with mu4e, and analyze the differences. But, to be honest, you would need to do that yourself -- our time is limited, sorry! You could of also ask on the mailing-list. |
Describe the bug
When forwarding an email, the new text added above the forwarded text is not included. Furthermore, the line "-------------------- End of forwarded message --------------------" somehow ends up in an attachment.
I've attached an example email (email-original.txt), the draft of the forwarded email with some new text at the top (email-draft.txt) and the final forwarded email that is received (email-forwarded.txt), which does not contain the new text.
email-original.txt
email-draft.txt
email-forwarded.txt
How to Reproduce
These are the steps:
mu4e-compose-forward
on an emailEnvironment
Using the mu4e 1.12.8 and emacs 30.0.93, with
message-forward-as-mime
set tonil
.Checklist
master
(otherwise please upgrade)The text was updated successfully, but these errors were encountered: