Mercurial > libpst
comparison src/libpst.c @ 252:4573b536177f
fix for broken internet headers from Outlook
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sat, 24 Jul 2010 12:07:56 -0700 |
parents | 67b24d6a45d6 |
children | c947b8812120 |
comparison
equal
deleted
inserted
replaced
251:00aaa548289b | 252:4573b536177f |
---|---|
2368 case 0x0078: // PR_RCVD_REPRESENTING_EMAIL_ADDRESS Recipient Address 2 | 2368 case 0x0078: // PR_RCVD_REPRESENTING_EMAIL_ADDRESS Recipient Address 2 |
2369 LIST_COPY_EMAIL_STR("Received on behalf of Address", item->email->recip2_address); | 2369 LIST_COPY_EMAIL_STR("Received on behalf of Address", item->email->recip2_address); |
2370 break; | 2370 break; |
2371 case 0x007D: // PR_TRANSPORT_MESSAGE_HEADERS Internet Header | 2371 case 0x007D: // PR_TRANSPORT_MESSAGE_HEADERS Internet Header |
2372 LIST_COPY_EMAIL_STR("Internet Header", item->email->header); | 2372 LIST_COPY_EMAIL_STR("Internet Header", item->email->header); |
2373 if (item->email->header.str && item->email->header.str[0] == '\r') { | |
2374 // broken outlook internet headers | |
2375 const char* fix = "Received: header broken by outlook fixup by libpst"; | |
2376 char *str = pst_malloc(strlen(fix) + strlen(item->email->header.str) + 1); | |
2377 strcpy(str, fix); | |
2378 strcat(str, item->email->header.str); | |
2379 free(item->email->header.str); | |
2380 item->email->header.str = str; | |
2381 } | |
2373 break; | 2382 break; |
2374 case 0x0C04: // PR_NDR_REASON_CODE | 2383 case 0x0C04: // PR_NDR_REASON_CODE |
2375 LIST_COPY_EMAIL_INT32("NDR reason code", item->email->ndr_reason_code); | 2384 LIST_COPY_EMAIL_INT32("NDR reason code", item->email->ndr_reason_code); |
2376 break; | 2385 break; |
2377 case 0x0C05: // PR_NDR_DIAG_CODE | 2386 case 0x0C05: // PR_NDR_DIAG_CODE |