view: be clearer there's no text body found

There may have been an html body, but mu-view only shows a text-body;
make that clearer.

Add a test case for an html-only message.

Fixes #2349.
This commit is contained in:
Dirk-Jan C. Binnema
2022-10-16 00:57:19 +03:00
parent 669ad7720e
commit 3d97db8ffc
2 changed files with 119 additions and 2 deletions

View File

@ -111,11 +111,11 @@ body_or_summary(const Message& message, const MuConfig* opts)
if (!body || body->empty()) {
if (any_of(message.flags() & Flags::Encrypted)) {
color_maybe(MU_COLOR_CYAN);
g_print("[No body found; "
g_print("[No text body found; "
"message has encrypted parts]\n");
} else {
color_maybe(MU_COLOR_MAGENTA);
g_print("[No body found]\n");
g_print("[No text body found]\n");
}
color_maybe(MU_COLOR_DEFAULT);
return;