Browse code

Back to basics handling of bounces

git-svn: trunk@1959

Nigel Horne authored on 2006/05/05 02:44:29
Showing 1 changed files
... ...
@@ -16,7 +16,7 @@
16 16
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17 17
  *  MA 02110-1301, USA.
18 18
  */
19
-static	char	const	rcsid[] = "$Id: mbox.c,v 1.298 2006/05/04 12:44:59 nigelhorne Exp $";
19
+static	char	const	rcsid[] = "$Id: mbox.c,v 1.299 2006/05/04 17:44:29 nigelhorne Exp $";
20 20
 
21 21
 #if HAVE_CONFIG_H
22 22
 #include "clamav-config.h"
... ...
@@ -1093,7 +1093,8 @@ cli_parse_mbox(const char *dir, int desc, cli_ctx *ctx)
1093 1093
 	 * message is stopped, and giving a better indication of which message
1094 1094
 	 * within the mailbox is infected
1095 1095
 	 */
1096
-	if((strncmp(buffer, "From ", 5) == 0) && isalnum(buffer[5])) {
1096
+	/*if((strncmp(buffer, "From ", 5) == 0) && isalnum(buffer[5])) {*/
1097
+	if(strncmp(buffer, "From ", 5) == 0) {
1097 1098
 		/*
1098 1099
 		 * Have been asked to check a UNIX style mbox file, which
1099 1100
 		 * may contain more than one e-mail message to decode
... ...
@@ -1133,7 +1134,8 @@ cli_parse_mbox(const char *dir, int desc, cli_ctx *ctx)
1133 1133
 
1134 1134
 		do {
1135 1135
 			cli_chomp(buffer);
1136
-			if(lastLineWasEmpty && (strncmp(buffer, "From ", 5) == 0) && isalnum(buffer[5])) {
1136
+			/*if(lastLineWasEmpty && (strncmp(buffer, "From ", 5) == 0) && isalnum(buffer[5])) {*/
1137
+			if(lastLineWasEmpty && (strncmp(buffer, "From ", 5) == 0)) {
1137 1138
 				cli_dbgmsg("Deal with email number %d\n", messagenumber++);
1138 1139
 				/*
1139 1140
 				 * End of a message in the mail box
... ...
@@ -4298,10 +4300,10 @@ isBounceStart(const char *line)
4298 4298
 		return FALSE;
4299 4299
 	if(*line == '\0')
4300 4300
 		return FALSE;
4301
-	if((strncmp(line, "From ", 5) == 0) && !isalnum(line[5]))
4301
+	/*if((strncmp(line, "From ", 5) == 0) && !isalnum(line[5]))
4302 4302
 		return FALSE;
4303 4303
 	if((strncmp(line, ">From ", 6) == 0) && !isalnum(line[6]))
4304
-		return FALSE;
4304
+		return FALSE;*/
4305 4305
 	if(cli_filetype(line, strlen(line)) != CL_TYPE_MAIL)
4306 4306
 		return FALSE;
4307 4307