diff src/readpst.c @ 281:d9b1e2e0f25a

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 16:27:30 -0700
parents f897afe47db0
children 57c3bcf22c4f
line wrap: on
line diff
--- a/src/readpst.c	Sun May 22 16:08:10 2011 -0700
+++ b/src/readpst.c	Sun May 22 16:27:30 2011 -0700
@@ -1092,8 +1092,11 @@
     if (header) {
         if ((strncasecmp(header, "Return-Path: ", 13) == 0) ||
             (strncasecmp(header, "Received: ",    10) == 0) ||
+            (strncasecmp(header, "Subject: ",      9) == 0) ||
+            (strncasecmp(header, "Date: ",         6) == 0) ||
             (strncasecmp(header, "From: ",         6) == 0) ||
-            (strncasecmp(header, "X-x: ",          5) == 0)) {
+            (strncasecmp(header, "X-x: ",          5) == 0) ||
+            (strncasecmp(header, "Microsoft Mail Internet Headers", 31) == 0)) {
             return 1;
         }
         else {