summaryrefslogtreecommitdiffstats
path: root/rfc2047.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-11-19 23:46:52 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-11-19 23:46:52 +0000
commit35e148b0000e6c657becd05ca1529b34c7ab6a44 (patch)
tree540d9057bcbab6a88436acec1be13b4c5122ef98 /rfc2047.c
parent7037a4e08fb045f87e7aa96cf298a4386385824d (diff)
Properly encode '_' characters in words which are qp-encoded.
Diffstat (limited to 'rfc2047.c')
-rw-r--r--rfc2047.c2
1 files changed, 1 insertions, 1 deletions
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)
{