Skip to content

Content-Description fields are omitted with inline images #16

Description

@ikedas

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>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions