Mercurial > libpst
changeset 274:ebcfb23390a4
add some debug code
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sun, 22 May 2011 12:16:27 -0700 |
parents | d57dd13158ef |
children | e02c81c39232 |
files | regression/regression-tests.bash src/readpst.c |
diffstat | 2 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/regression/regression-tests.bash Sat Apr 23 12:23:05 2011 -0700 +++ b/regression/regression-tests.bash Sun May 22 12:16:27 2011 -0700 @@ -126,6 +126,8 @@ $func 24 paul.sheer.pst # embedded rfc822 attachment $func 25 jerry.pst # non ascii subject lines $func 26 phill.bertolus.pst # possible segfault in forked process, cannot reproduce +$func 27 justin.phelps.pst # segfault? + [ -n "$val" ] && grep 'lost:' *err | grep -v 'lost: 0 '
--- a/src/readpst.c Sat Apr 23 12:23:05 2011 -0700 +++ b/src/readpst.c Sun May 22 12:16:27 2011 -0700 @@ -1359,6 +1359,11 @@ pst_convert_utf8_null(item, &item->email->header); headers = (item->email->header.str) ? item->email->header.str : *extra_mime_headers; + if (*extra_mime_headers && item->email->header.str) { + // we have both extra mime headers from outer message, + // and also our own set of headers + DEBUG_INFO(("Double headers! outer set = \n%s\n\nDouble headers! inner set = \n%s\n", *extra_mime_headers, item->email->header.str)); + } // setup default body character set and report type strncpy(body_charset, pst_default_charset(item, sizeof(buffer_charset), buffer_charset), sizeof(body_charset)); @@ -1387,7 +1392,7 @@ else c_time = "Fri Dec 28 12:06:21 2001"; } else - c_time= "Fri Dec 28 12:06:21 2001"; + c_time = "Fri Dec 28 12:06:21 2001"; // create our MIME boundaries here. snprintf(boundary, sizeof(boundary), "--boundary-LibPST-iamunique-%i_-_-", rand());