From f721c7dba14ce0ed5042b8d212669014952aa324 Mon Sep 17 00:00:00 2001 From: Philipp Takacs Date: Sat, 23 Apr 2016 20:50:43 +0200 Subject: [PATCH] check for linecap and trailing space in mhbuild for text/plain without this a mail with too long lines can be created, or trailing space is removed by mhsign. --- uip/mhbuild.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/uip/mhbuild.c b/uip/mhbuild.c index fe3e946..ba4428f 100644 --- a/uip/mhbuild.c +++ b/uip/mhbuild.c @@ -1276,13 +1276,8 @@ scan_content(CT ct) case CT_TEXT: check8bit = 1; checkboundary = 1; - if (ct->c_subtype == TEXT_PLAIN) { - checklinelen = 0; - checklinespace = 0; - } else { - checklinelen = 1; - checklinespace = 1; - } + checklinelen = 1; + checklinespace = 1; break; case CT_MESSAGE: -- 1.7.10.4