[Commits] utils.c 1.36.2.195 1.36.2.196

colin at claws-mail.org colin at claws-mail.org
Fri May 11 18:53:25 CEST 2012


Update of /home/claws-mail/claws/src/common
In directory srv:/tmp/cvs-serv5004/src/common

Modified Files:
      Tag: gtk2
	utils.c 
Log Message:
2012-05-11 [colin]	3.8.0cvs40

	* src/mimeview.c
	* src/common/utils.c
		Fix bug 2659, 'E-mail attachments are handled
		inconsistently'
		Fix problems iterating the mime tree, and determine
		whether a file is an email without To:

Index: utils.c
===================================================================
RCS file: /home/claws-mail/claws/src/common/utils.c,v
retrieving revision 1.36.2.195
retrieving revision 1.36.2.196
diff -u -d -r1.36.2.195 -r1.36.2.196
--- utils.c	1 Nov 2011 20:31:36 -0000	1.36.2.195
+++ utils.c	11 May 2012 16:53:23 -0000	1.36.2.196
@@ -4844,9 +4844,11 @@
 	       && fgets(buffer, sizeof (buffer), fp) > 0) {
 		if (!strncmp(buffer, "From:", strlen("From:")))
 			score++;
-		if (!strncmp(buffer, "To:", strlen("To:")))
+		else if (!strncmp(buffer, "Date:", strlen("Date:")))
 			score++;
-		if (!strncmp(buffer, "Subject:", strlen("Subject:")))
+		else if (!strncmp(buffer, "Message-ID:", strlen("Message-ID:")))
+			score++;
+		else if (!strncmp(buffer, "Subject:", strlen("Subject:")))
 			score++;
 		i++;
 	}



More information about the Commits mailing list