1
0
Fork 0

bug fix in mime lib

This commit is contained in:
bagyenda 2007-11-27 06:31:21 +00:00
parent c58cfafec5
commit 2bee4e49db
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,5 @@
2007-11-27 P. A. Bagyenda <bagyenda@dsmagic.com>
* Bug fix in mime convertor module
2007-11-07 P. A. Bagyenda <bagyenda@dsmagic.com>
* Added reroute-add-sender-to-subject config param for MMSBox
2007-09-25 P. A. Bagyenda <bagyenda@dsmagic.com>

View File

@ -405,9 +405,11 @@ void unbase64_mimeparts(MIMEEntity *m)
if (ctype && te &&
octstr_case_compare(te,octstr_imm("base64")) == 0) {
Octstr *s = mime_entity_body(m);
octstr_base64_to_binary(s);
mime_entity_set_body(m, s);
octstr_destroy(s);
if (s) {
octstr_base64_to_binary(s);
mime_entity_set_body(m, s);
octstr_destroy(s);
}
}
http_header_remove_all(headers, "Content-Transfer-Encoding"); /* Remove it in all cases (?).*/
mime_replace_headers(m, headers);