diff 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
line wrap: on
line diff
--- a/src/libpst.c	Sun May 22 13:19:49 2011 -0700
+++ b/src/libpst.c	Sun May 22 15:06:08 2011 -0700
@@ -2372,15 +2372,6 @@
                     break;
                 case 0x007D: // PR_TRANSPORT_MESSAGE_HEADERS Internet Header
                     LIST_COPY_EMAIL_STR("Internet Header", item->email->header);
-                    if (item->email->header.str && item->email->header.str[0] == '\r') {
-                        // broken outlook internet headers
-                        const char* fix = "Received: header broken by outlook fixup by libpst";
-                        char *str = pst_malloc(strlen(fix) + strlen(item->email->header.str) + 1);
-                        strcpy(str, fix);
-                        strcat(str, item->email->header.str);
-                        free(item->email->header.str);
-                        item->email->header.str = str;
-                    }
                     break;
                 case 0x0C04: // PR_NDR_REASON_CODE
                     LIST_COPY_EMAIL_INT32("NDR reason code", item->email->ndr_reason_code);