2006-12-07 [wwp] 2.6.1cvs11
authorTristan Chabredier <wwp@claws-mail.org>
Thu, 7 Dec 2006 11:02:19 +0000 (11:02 +0000)
committerTristan Chabredier <wwp@claws-mail.org>
Thu, 7 Dec 2006 11:02:19 +0000 (11:02 +0000)
* src/compose.c
fix email address comparison when replying to all
(avoid replying to ourselves), thanks to Colin.

ChangeLog
PATCHSETS
configure.ac
src/compose.c

index 65c06b9..91d7226 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
 2006-12-06 [paul]      2.6.1cvs10
 
        * src/addrharvest.c
index bdf3ee3..ff9a3d0 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.3.2.23 -r 1.3.2.24 src/ssl_manager.c;  cvs diff -u -r 1.4.2.13 -r 1.4.2.14 src/common/ssl_certificate.c;  cvs diff -u -r 1.1.4.5 -r 1.1.4.6 src/common/ssl_certificate.h;  ) > 2.6.1cvs8.patchset
 ( cvs diff -u -r 1.382.2.339 -r 1.382.2.340 src/compose.c;  cvs diff -u -r 1.94.2.110 -r 1.94.2.111 src/messageview.c;  cvs diff -u -r 1.47.2.36 -r 1.47.2.37 src/procheader.c;  cvs diff -u -r 1.49.2.83 -r 1.49.2.84 src/procmime.c;  cvs diff -u -r 1.150.2.84 -r 1.150.2.85 src/procmsg.c;  cvs diff -u -r 1.96.2.160 -r 1.96.2.161 src/textview.c;  ) > 2.6.1cvs9.patchset
 ( cvs diff -u -r 1.6.10.12 -r 1.6.10.13 src/addrharvest.c;  cvs diff -u -r 1.8.2.15 -r 1.8.2.16 src/editldap.c;  cvs diff -u -r 1.1.4.22 -r 1.1.4.23 src/expldifdlg.c;  cvs diff -u -r 1.101.2.33 -r 1.101.2.34 src/news.c;  cvs diff -u -r 1.43.2.55 -r 1.43.2.56 src/toolbar.c;  cvs diff -u -r 1.36.2.92 -r 1.36.2.93 src/common/utils.c;  ) > 2.6.1cvs10.patchset
+( cvs diff -u -r 1.382.2.340 -r 1.382.2.341 src/compose.c;  ) > 2.6.1cvs11.patchset
index 695e062..7074deb 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=6
 MICRO_VERSION=1
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=10
+EXTRA_VERSION=11
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index db53d1b..bf167cd 100644 (file)
@@ -2818,17 +2818,17 @@ static void compose_reply_set_entry(Compose *compose, MsgInfo *msginfo,
 
        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)