X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=sendlib.c;h=7ec942c36496972a32a5c0319afa7012c4a8d7f6;hp=1daf044702f9250c18ce3429480f9712b6c1036f;hb=c8bf978fc5c4f6c793620a515fa2456a3fa9eb13;hpb=207c707f2c7073a6fbd14124197a559d9d471f65 diff --git a/sendlib.c b/sendlib.c index 1daf044..7ec942c 100644 --- a/sendlib.c +++ b/sendlib.c @@ -924,14 +924,13 @@ int mutt_lookup_mime_type (BODY * att, const char *path) *p = 0; /* remove any leading space. */ - ct = buf; - SKIPWS (ct); + ct = vskipspaces(buf); /* position on the next field in this line */ if ((p = strpbrk (ct, " \t")) == NULL) continue; *p++ = 0; - SKIPWS (p); + p = vskipspaces(p); /* cycle through the file extensions */ while ((p = strtok (p, " \t\n"))) { @@ -1596,8 +1595,7 @@ int mutt_write_rfc822_header (FILE * fp, ENVELOPE * env, BODY * attach, /* Add any user defined headers */ for (; tmp; tmp = tmp->next) { if ((p = strchr (tmp->data, ':'))) { - p++; - SKIPWS (p); + p = vskipspaces(p + 1); if (!*p) continue; /* don't emit empty fields. */ @@ -1642,8 +1640,7 @@ static void encode_headers (LIST * h) continue; i = p - h->data; - ++p; - SKIPWS (p); + p = vskipspaces(p + 1); tmp = m_strdup(p); if (!tmp)