Skip to content
Snippets Groups Projects
Commit f039b2aa authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Clean-up MIME-Decoded plain-text format message

Don't display at all if smb_getplaintext() returns a blank string.
Don't display "(null)" if there's no text sub-type.
parent 4cb97552
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -326,10 +326,10 @@ bool sbbs_t::show_msg(smb_t* smb, smbmsg_t* msg, long p_mode, post_t* post)
p = smb_getplaintext(msg, txt);
if(p == NULL)
p = txt;
else
else if(*p != '\0')
bprintf(text[MIMEDecodedPlainTextFmt]
, msg->text_charset == NULL ? "unspecified (US-ASCII)" : msg->text_charset
, msg->text_subtype);
, msg->text_subtype == NULL ? "plain" : msg->text_subtype);
}
truncsp(p);
SKIP_CRLF(p);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment