Mercurial > libpst
comparison src/readpst.c @ 191:4b498fd68464
add pst_attach_to_mem() back into the shared library interface.
improve developer documentation.
fix memory leak caught by valgrind.
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Wed, 15 Apr 2009 18:39:42 -0700 |
parents | 0a4f7ecd7452 |
children | 320cfcba8058 |
comparison
equal
deleted
inserted
replaced
190:e3a63888cdd4 | 191:4b498fd68464 |
---|---|
1098 char body_charset[60]; | 1098 char body_charset[60]; |
1099 char body_report[60]; | 1099 char body_report[60]; |
1100 char sender[60]; | 1100 char sender[60]; |
1101 int sender_known = 0; | 1101 int sender_known = 0; |
1102 char *temp = NULL; | 1102 char *temp = NULL; |
1103 int attach_num; | |
1104 time_t em_time; | 1103 time_t em_time; |
1105 char *c_time; | 1104 char *c_time; |
1106 char *headers = NULL; | 1105 char *headers = NULL; |
1107 int has_from, has_subject, has_to, has_cc, has_date, has_msgid; | 1106 int has_from, has_subject, has_to, has_cc, has_date, has_msgid; |
1108 has_from = has_subject = has_to = has_cc = has_date = has_msgid = 0; | 1107 has_from = has_subject = has_to = has_cc = has_date = has_msgid = 0; |
1345 } | 1344 } |
1346 | 1345 |
1347 // other attachments | 1346 // other attachments |
1348 { | 1347 { |
1349 pst_item_attach* attach; | 1348 pst_item_attach* attach; |
1350 attach_num = 0; | 1349 int attach_num = 0; |
1351 for (attach = item->attach; attach; attach = attach->next) { | 1350 for (attach = item->attach; attach; attach = attach->next) { |
1352 pst_convert_utf8_null(item, &attach->filename1); | 1351 pst_convert_utf8_null(item, &attach->filename1); |
1353 pst_convert_utf8_null(item, &attach->filename2); | 1352 pst_convert_utf8_null(item, &attach->filename2); |
1354 pst_convert_utf8_null(item, &attach->mimetype); | 1353 pst_convert_utf8_null(item, &attach->mimetype); |
1355 DEBUG_EMAIL(("Attempting Attachment encoding\n")); | 1354 DEBUG_EMAIL(("Attempting Attachment encoding\n")); |