# HG changeset patch # User Carl Byington # Date 1306095589 25200 # Node ID bbbd455c0490e44562930358bdfa87a5ee1f5839 # Parent e02c81c392325f787899df636a2272b70c2c84b4 add some debug code diff -r e02c81c39232 -r bbbd455c0490 src/readpst.c --- 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));