Mercurial > libpst
comparison src/readpst.c @ 276:bbbd455c0490
add some debug code
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sun, 22 May 2011 13:19:49 -0700 |
parents | e02c81c39232 |
children | 86078d0c2e9c |
comparison
equal
deleted
inserted
replaced
275:e02c81c39232 | 276:bbbd455c0490 |
---|---|
1362 if (*extra_mime_headers && item->email->header.str) { | 1362 if (*extra_mime_headers && item->email->header.str) { |
1363 // we have both extra mime headers from the outer message, and also our own set of headers | 1363 // we have both extra mime headers from the outer message, and also our own set of headers |
1364 // normally we would use the headers on our current (inner) message, but those | 1364 // normally we would use the headers on our current (inner) message, but those |
1365 // headers are sometimes really bogus - they seem to be fragments of the message body. So | 1365 // headers are sometimes really bogus - they seem to be fragments of the message body. So |
1366 // we only use them if they seem to be actual smtp rfc822 headers. | 1366 // we only use them if they seem to be actual smtp rfc822 headers. |
1367 if ((strncasecmp(headers, "Return-Path: ") == 0) || | 1367 if ((strncasecmp(headers, "Return-Path: ", 13) == 0) || |
1368 (strncasecmp(headers, "Received: ") == 0) || | 1368 (strncasecmp(headers, "Received: ", 10) == 0) || |
1369 (strncasecmp(headers, "From: ") == 0)) { | 1369 (strncasecmp(headers, "From: ", 6) == 0)) { |
1370 } | 1370 } |
1371 else { | 1371 else { |
1372 DEBUG_INFO(("Ignore bogus inner headers = \n%s\n", headers)); | 1372 DEBUG_INFO(("Ignore bogus inner headers = \n%s\n", headers)); |
1373 headers = *extra_mime_headers; | 1373 headers = *extra_mime_headers; |
1374 } | 1374 } |