comparison src/libpst.c @ 277:86078d0c2e9c

ignore internet headers that don't seem to be real rfc822 headers
author Carl Byington <carl@five-ten-sg.com>
date Sun, 22 May 2011 15:06:08 -0700
parents eafaf362779e
children 0f0ccd29b0d7
comparison
equal deleted inserted replaced
276:bbbd455c0490 277:86078d0c2e9c
2370 case 0x0078: // PR_RCVD_REPRESENTING_EMAIL_ADDRESS Recipient Address 2 2370 case 0x0078: // PR_RCVD_REPRESENTING_EMAIL_ADDRESS Recipient Address 2
2371 LIST_COPY_EMAIL_STR("Received on behalf of Address", item->email->recip2_address); 2371 LIST_COPY_EMAIL_STR("Received on behalf of Address", item->email->recip2_address);
2372 break; 2372 break;
2373 case 0x007D: // PR_TRANSPORT_MESSAGE_HEADERS Internet Header 2373 case 0x007D: // PR_TRANSPORT_MESSAGE_HEADERS Internet Header
2374 LIST_COPY_EMAIL_STR("Internet Header", item->email->header); 2374 LIST_COPY_EMAIL_STR("Internet Header", item->email->header);
2375 if (item->email->header.str && item->email->header.str[0] == '\r') {
2376 // broken outlook internet headers
2377 const char* fix = "Received: header broken by outlook fixup by libpst";
2378 char *str = pst_malloc(strlen(fix) + strlen(item->email->header.str) + 1);
2379 strcpy(str, fix);
2380 strcat(str, item->email->header.str);
2381 free(item->email->header.str);
2382 item->email->header.str = str;
2383 }
2384 break; 2375 break;
2385 case 0x0C04: // PR_NDR_REASON_CODE 2376 case 0x0C04: // PR_NDR_REASON_CODE
2386 LIST_COPY_EMAIL_INT32("NDR reason code", item->email->ndr_reason_code); 2377 LIST_COPY_EMAIL_INT32("NDR reason code", item->email->ndr_reason_code);
2387 break; 2378 break;
2388 case 0x0C05: // PR_NDR_DIAG_CODE 2379 case 0x0C05: // PR_NDR_DIAG_CODE