summaryrefslogtreecommitdiffstats
path: root/rfc2047.c
diff options
context:
space:
mode:
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)
{