Mercurial > libpst
diff src/readpst.c @ 274:ebcfb23390a4
add some debug code
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sun, 22 May 2011 12:16:27 -0700 |
parents | 3f323c867cb4 |
children | e02c81c39232 |
line wrap: on
line diff
--- 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());