Browse Source

improve MIME handling (accept Base64 as base64)

master
Felix von Leitner 19 years ago
parent
commit
9d4b503740
  1. 6
      test/uudecode.c

6
test/uudecode.c

@ -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