Mercurial > libpst
comparison src/readpst.c @ 279:8c2c7d8d7518
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:52:12 -0700 |
parents | 06e723720db0 |
children | f897afe47db0 |
comparison
equal
deleted
inserted
replaced
278:06e723720db0 | 279:8c2c7d8d7518 |
---|---|
1094 (strncasecmp(header, "Received: ", 10) == 0) || | 1094 (strncasecmp(header, "Received: ", 10) == 0) || |
1095 (strncasecmp(header, "From: ", 6) == 0)) { | 1095 (strncasecmp(header, "From: ", 6) == 0)) { |
1096 return 1; | 1096 return 1; |
1097 } | 1097 } |
1098 else { | 1098 else { |
1099 DEBUG_INFO(("Ignore bogus headers = \n%s\n", header)); | 1099 if (strlen(header) > 2) { |
1100 DEBUG_INFO(("Ignore bogus headers = %s\n", header)); | |
1101 } | |
1100 return 0; | 1102 return 0; |
1101 } | 1103 } |
1102 } | 1104 } |
1103 else return 0; | 1105 else return 0; |
1104 } | 1106 } |