mmime: ensure a new token in qp header generation

This commit is contained in:
Christian Neukirchen 2016-11-08 16:20:44 +01:00
parent 40b19264c5
commit 3095d48655

View File

@ -229,8 +229,8 @@ print_header(char *line) {
linelen = 1;
}
if (highbit || s[0] == ' ') {
printf("=?UTF-8?Q?");
linelen += 13;
printf(" =?UTF-8?Q?");
linelen += 14;
linelen += gen_qp((uint8_t *)s, e-s, 999, 1);
printf("?=");
prevq = 1;