changeset 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
files src/readpst.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/readpst.c	Sun May 22 13:16:35 2011 -0700
+++ b/src/readpst.c	Sun May 22 13:19:49 2011 -0700
@@ -1364,9 +1364,9 @@
         // normally we would use the headers on our current (inner) message, but those
         // headers are sometimes really bogus - they seem to be fragments of the message body. So
         // we only use them if they seem to be actual smtp rfc822 headers.
-        if ((strncasecmp(headers, "Return-Path: ") == 0) ||
-            (strncasecmp(headers, "Received: ") == 0) ||
-            (strncasecmp(headers, "From: ") == 0)) {
+        if ((strncasecmp(headers, "Return-Path: ", 13) == 0) ||
+            (strncasecmp(headers, "Received: ",    10) == 0) ||
+            (strncasecmp(headers, "From: ",         6) == 0)) {
         }
         else {
             DEBUG_INFO(("Ignore bogus inner headers = \n%s\n", headers));