check for linecap and trailing space in mhbuild for text/plain
authorPhilipp Takacs <philipp@bureaucracy.de>
Sat, 23 Apr 2016 18:50:43 +0000 (20:50 +0200)
committerPhilipp Takacs <philipp@bureaucracy.de>
Sun, 24 Apr 2016 10:24:21 +0000 (12:24 +0200)
without this a mail with too long lines can be created, or
trailing space is removed by mhsign.

uip/mhbuild.c

index fe3e946..ba4428f 100644 (file)
@@ -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: