mirror of /home/gitosis/repositories/libowfat.git
improve MIME handling (accept Base64 as base64)
This commit is contained in:
parent
1f2e5366b8
commit
9d4b503740
|
@ -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…
Reference in New Issue