leahneukirchen / mblaze

Unix utilities to deal with Maildir
Other
419 stars 48 forks source link

mshow: unknown charset of extracted attachments #248

Open ashiire opened 11 months ago

ashiire commented 11 months ago

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:

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

leahneukirchen commented 11 months ago

I guess the second part wouldn't be too hard to add, as all the steps are implemented already.