himalaya/cli
fabrixxm b7157573f2
default Content-Type to text/plain for not multipart messages (#357)
* Default Content-Type to text/plain for not multipart messages

Parse body of messages without subparts as text/plain if Content-Type
header is not set.

* narrow check for defaulting to `text/plain`

take message body as `text/plain` only if message has only one part
and has no `Content-Type` header

Co-authored-by: Clément DOUIN <soywod@users.noreply.github.com>
2022-05-07 22:13:08 +02:00
..
src default Content-Type to text/plain for not multipart messages (#357) 2022-05-07 22:13:08 +02:00
Cargo.toml prepare release v0.5.10 2022-03-20 21:19:45 +01:00