2009-08-30 [holger] 3.7.2cvs27
authorHolger Berndt <hb@claws-mail.org>
Sun, 30 Aug 2009 23:46:33 +0000 (23:46 +0000)
committerHolger Berndt <hb@claws-mail.org>
Sun, 30 Aug 2009 23:46:33 +0000 (23:46 +0000)
* src/compose.c
Do case-insensitive comparison against
header names when extracting recipients
from composed mails

ChangeLog
PATCHSETS
configure.ac
src/compose.c

index f5f05b1..3dfc6b6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-08-30 [holger]    3.7.2cvs27
+
+       * src/compose.c
+               Do case-insensitive comparison against
+               header names when extracting recipients
+               from composed mails
+
 2009-08-23 [colin]     3.7.2cvs26
 
        * src/mbox.c
index f17e295..5cda95c 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.382.2.522 -r 1.382.2.523 src/compose.c;  ) > 3.7.2cvs24.patchset
 ( cvs diff -u -r 1.1.2.27 -r 1.1.2.28 src/prefs_compose_writing.c;  ) > 3.7.2cvs25.patchset
 ( cvs diff -u -r 1.28.2.48 -r 1.28.2.49 src/mbox.c;  ) > 3.7.2cvs26.patchset
+( cvs diff -u -r 1.382.2.523 -r 1.382.2.524 src/compose.c;  ) > 3.7.2cvs27.patchset
index 50d187c..a4ecf02 100644 (file)
@@ -12,7 +12,7 @@ MINOR_VERSION=7
 MICRO_VERSION=2
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=26
+EXTRA_VERSION=27
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index dc878e6..b211cc1 100644 (file)
@@ -4681,13 +4681,13 @@ gboolean compose_check_for_valid_recipient(Compose *compose) {
                g_strstrip(header);
                if (entry[0] != '\0') {
                        for (strptr = recipient_headers_mail; *strptr != NULL; strptr++) {
-                               if (!strcmp(header, prefs_common_translated_header_name(*strptr))) {
+                               if (!g_ascii_strcasecmp(header, prefs_common_translated_header_name(*strptr))) {
                                        compose->to_list = address_list_append(compose->to_list, entry);
                                        recipient_found = TRUE;
                                }
                        }
                        for (strptr = recipient_headers_news; *strptr != NULL; strptr++) {
-                               if (!strcmp(header, prefs_common_translated_header_name(*strptr))) {
+                               if (!g_ascii_strcasecmp(header, prefs_common_translated_header_name(*strptr))) {
                                        compose->newsgroup_list = newsgroup_list_append(compose->newsgroup_list, entry);
                                        recipient_found = TRUE;
                                }