Skip to content
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

Forwarding email with inline image or LaTeX formula fails (reverts to text), but replying works (keeps html) #170

Open
prbuen opened this issue Jul 7, 2023 · 1 comment

Comments

@prbuen
Copy link

prbuen commented Jul 7, 2023

Org-msg works beautifully for composing emails in org mode including the insertion of math formulae such as $\int_a^b f(x)dx$ which are turned into inline images in the html part ($\int_a^b f(x)dx$).

Replying in html to an email composed in this way works perfectly. The inline image is saved and exported in the html encoded original article. The sent email shows the formula where it should be in the original message.

However, forwarding the same email fails: in org-msg-composition-parameters, org-msg-has-mml-tags returns true (while it returns false when replying). This means .style in org-msg-post-setup is set to nil instead of top-posting and everything reverts to a 'text' forward (which then complains has missing attachments as the image formula is missing). We can still proceed and send, images are attached, but no longer inline (which maybe is ok for images, but isn't great for formulae).

It seems odd to me that an mml tag is found when forwarding but not when replying to the same email? This makes me think it's something that could be fixed so we can forward emails with inline images without messing up how they look (but to be honest I know nothing about mml tags).

A workaround is of course to always 'reply' and edit the To:, Cc: fields, but then the flags are not right.

Forwarding messages that I receive and have attachments sometimes work in html too (unclear to me when). But forwarding messages I write to myself with org-msg, attaching files via C-c C-a, also revert to text during forward, presumably as attachments are detected as mml tags?

I am using mu/mu4e 1.10.4, Emacs 27, Kubuntu 22.04.

Thanks for writing this great package!

@prbuen prbuen changed the title Forwarding email with LaTeX formula fails (reverts to text), but replying works (keeps html) Forwarding email with inline image or LaTeX formula fails (reverts to text), but replying works (keeps html) Jul 7, 2023
@prbuen
Copy link
Author

prbuen commented Jul 7, 2023

perhaps a duplicate of #165?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant