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

eaf-open-mail-as-html doesn't display embedded images that are attachments #506

Open
Jdogzz opened this issue Jan 10, 2021 · 4 comments
Open
Labels
help wanted Extra attention is needed

Comments

@Jdogzz
Copy link

Jdogzz commented Jan 10, 2021

Describe the bug
When the html version of an email incorporates pictures that are attachments in the email, the eaf-open-mail-as-html view only displays broken image areas for those pictures.

To Reproduce

  1. Open email with inline images that are attachments.
  2. Call eaf-open-mail-as-html

Expected behavior
It will display all images correctly in the html view.

Versions (please complete the following info):

  • Distro and DE/WM: Turnkey Core 16.0 and Xpra
  • Versions of Dependencies:
    • python-pyqt5: 5.11.3+dfsg-1+b3
    • python-dbus: 1.2.8-3
    • python-pyqtwebengine: 5.11.3+dfsg-1+b3
  • M-x emacs-version: GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2019-09-23, modified by Debian

Screenshots
image

Additional context
Add any other context about the problem here.

@manateelazycat
Copy link
Member

Can you give us a minimum reproduction step or sample mail?

I'm not use Emacs read mail, can't test this issue.

@Jdogzz
Copy link
Author

Jdogzz commented Jan 11, 2021

I made an example email in gmail and it too can produce the problem described above.

test.zip

@MatthewZMD
Copy link
Member

I know this issue, it's not very easy to solve at the moment.

@Jdogzz
Copy link
Author

Jdogzz commented Jan 12, 2021

I've been reading through the code, would it not be sufficient to extract all images to the /tmp dir (looks like this is what I have set for temporary-file-directory) before it packages up the html file for display?

I did try extracting the images there before calling M-x e-ht but it didn't fix the problem. I noticed I couldn't even find the html file it created at the location shown in the minibuffer so I'm guessing there is more processing going on, maybe part of what you mean by it not being easy to solve.

@manateelazycat manateelazycat added the help wanted Extra attention is needed label Feb 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants