CVS: sylpheedclaws/sylpheed-claws/src compose.c,1.382.2.340,1.382.2.341

[email protected]
Newsgroups gmane.mail.sylpheed.claws.cvs
Message-ID <[email protected]>
Update of /pack/anoncvs/sylpheedclaws/sylpheed-claws/src
In directory sunsite.dk:/tmp/cvs-serv2886/src

Modified Files:
      Tag: gtk2
	compose.c 
Log Message:
2006-12-07 [wwp]	2.6.1cvs11

	* src/compose.c
		fix email address comparison when replying to all
		(avoid replying to ourselves), thanks to Colin.

Index: compose.c
===================================================================
RCS file: /pack/anoncvs/sylpheedclaws/sylpheed-claws/src/compose.c,v
retrieving revision 1.382.2.340
retrieving revision 1.382.2.341
diff -u -d -r1.382.2.340 -r1.382.2.341
--- compose.c	2006/12/06 08:18:28	1.382.2.340
+++ compose.c	2006/12/07 11:02:11	1.382.2.341
@@ -2818,17 +2818,17 @@
 
 	to_table = g_hash_table_new(g_str_hash, g_str_equal);
 	if (replyto)
-		g_hash_table_insert(to_table, g_strdup(replyto), GINT_TO_POINTER(1));
-	if (compose->account)
-		g_hash_table_insert(to_table, g_strdup(compose->account->address),
+		g_hash_table_insert(to_table, g_utf8_strdown(replyto, -1), GINT_TO_POINTER(1));
+	if (compose->account) {
+		g_hash_table_insert(to_table, g_utf8_strdown(compose->account->address, -1),
 				    GINT_TO_POINTER(1));
-
+	}
 	/* remove address on To: and that of current account */
 	for (cur = cc_list; cur != NULL; ) {
 		GSList *next = cur->next;
 		gchar *addr;
 
-		addr = g_strdup(cur->data);
+		addr = g_utf8_strdown(cur->data, -1);
 		extract_address(addr);
 
 		if (GPOINTER_TO_INT(g_hash_table_lookup(to_table, addr)) == 1)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.