From 35e148b0000e6c657becd05ca1529b34c7ab6a44 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Thu, 19 Nov 1998 23:46:52 +0000 Subject: [PATCH] Properly encode '_' characters in words which are qp-encoded. --- rfc2047.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rfc2047.c b/rfc2047.c index 72ea1fd9..7636cda6 100644 --- a/rfc2047.c +++ b/rfc2047.c @@ -69,7 +69,7 @@ static void q_encode_string (char *d, size_t dlen, const unsigned char *s) wordlen++; dlen--; } - else if ((*s & 0x80) || *s == '\t' || strchr (MimeSpecials, *s)) + else if ((*s & 0x80) || *s == '\t' || *s == '_' || strchr (MimeSpecials, *s)) { if (wordlen >= 70) { -- 2.40.0