improve MIME handling (accept Base64 as base64)

master
leitner 22 years ago
parent 71deab2eec
commit b938a069db

@ -218,11 +218,11 @@ foundfilename:
fmode=0644;
}
} else if (str_start(line,"Content-Transfer-Encoding: ")) {
if (str_start(line+27,"base64"))
if (case_starts(line+27,"base64"))
mimeenc=BASE64;
else if (str_start(line+27,"quoted-printable"))
else if (case_starts(line+27,"quoted-printable"))
mimeenc=QP;
else if (str_start(line+27,"7bit"))
else if (case_starts(line+27,"7bit"))
mimeenc=NONE; /* this is not an attachment */
else {
buffer_puts(buffer_1,"unknown encoding \"");

Loading…
Cancel
Save