Skip to content

mshow: unknown charset of extracted attachments #248

@ashiire

Description

@ashiire

When extracting attachments via mshow's -x or -O flags, any present charset information is lost. This is troublesome, as charset information is difficult to infer from file contents alone.

mshow does explicitly mention attachment charset in render mode if a filter is used to render the attachment, like so:
--- --- --- 3: text/plain size=235 charset="iso-8859-2" render="mshow-plaintext" ---
However, this seems like the wrong (and inconvenient) place to recover the information from.

I have two ideas that might help:

  • (Add an option to) explicitly state charset information in list mode, if available.
  • Add an option to automatically re-encode extracted attachments to UTF-8, same as in render mode.

I think that either one would be sufficient on its own, but both may be desirable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions