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

Content-Description fields are omitted with inline images #16

Open
ikedas opened this issue Jun 4, 2021 · 0 comments · May be fixed by #17
Open

Content-Description fields are omitted with inline images #16

ikedas opened this issue Jun 4, 2021 · 0 comments · May be fixed by #17
Labels
bug Something isn't working

Comments

@ikedas
Copy link
Member

ikedas commented Jun 4, 2021

Version

2.6.24 and earlier

Installation method

Any

Expected behavior

When an image part with Content-Description field is archived, e.g.:

Content-type: image/jpeg; name="image.jpg"
Content-Description: This is a JPEG file
Content-Disposition: inline; filename="image.jpg"
Content-transfer-encoding: base64

XXXX

Output should contain the description, i.e.:

  • For the inline image (Content-Disposition: inline):
    <p>This is a JPEG file</p>
    <p><a href="..." ><img src="..." alt="JPEG image"></a></p>
  • For the attachment (Content-Disposition: attachment, or non-images):
    <p><strong>Attachment:
    <a href="..." ><tt>image.jpg</tt></a></strong><br>
    <em>Description:</em> This is a JPEG file</p>

Actual behavior

With inline image, Content-Description is omitted.

  • For the inline image (Content-Disposition: inline):
    <p><a href="..." ><img src="..." alt="JPEG image"></a></p>
@ikedas ikedas added the bug Something isn't working label Jun 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant