Skip to content
This repository was archived by the owner on May 12, 2023. It is now read-only.

Unrecognized inline attachments #7

@Feliix42

Description

@Feliix42

As pointed out in offline discussions, detach does not recognise some attachments from Apple Mail because it inlines them.

This produces something like the following:

--Apple-Mail=_FF297101-ED64-4306-A433-DA2DB722FFB0
Content-Transfer-Encoding: base64
Content-Disposition: inline;
	filename=171214_Kachel_Campus_Weihnachten.png
Content-Type: image/png;
	name="171214_Kachel_Campus_Weihnachten.png"
Content-Id: <[...]@ifsr.de>

[Base64-Blob]

As opposed to normal attachments, the Content-Disposition field is set to inline, which is unfortunate because detach bases its recognition on this field.

Maybe we could extend the attachment criteria to include any message parts that are inline, but also of type application/pdf, image/png, image/jpg etc. This would be a kind of hacky solution but better than nothing. What do you think, @cirdeirf?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions