2004-12-01 [paul] 0.9.12cvs177.2
authorPaul Mangan <paul@claws-mail.org>
Wed, 1 Dec 2004 10:36:03 +0000 (10:36 +0000)
committerPaul Mangan <paul@claws-mail.org>
Wed, 1 Dec 2004 10:36:03 +0000 (10:36 +0000)
* src/addrharvest.c
fix 'harvest addresses'

ChangeLog-gtk2.claws
PATCHSETS
configure.ac
src/addrharvest.c

index 03d5a2a..27f4c2e 100644 (file)
@@ -1,3 +1,8 @@
+2004-12-01 [paul]      0.9.12cvs177.2
+
+       * src/addrharvest.c
+               fix 'harvest addresses'
+
 2004-11-30 [colin]     0.9.12cvs177.1
 
        * src/gtk/prefswindow.c
index a7fd774..188500a 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.49.2.23 -r 1.49.2.24 src/procmime.c; ) > 0.9.12cvs175.1.patchset
 ( cvs diff -u -r 1.207.2.22 -r 1.207.2.23 src/folderview.c; ) > 0.9.12cvs176.1.patchset
 ( cvs diff -u -r 1.12.2.8 -r 1.12.2.9 src/gtk/prefswindow.c; cvs diff -u -r 1.5.2.6 -r 1.5.2.7 src/gtk/pluginwindow.c; ) > 0.9.12cvs177.1.patchset
+( cvs diff -u -r 1.6.10.1 -r 1.6.10.2 src/addrharvest.c; ) > 0.9.12cvs177.2.patchset
index 39d57cb..e275b4a 100644 (file)
@@ -13,7 +13,7 @@ INTERFACE_AGE=0
 BINARY_AGE=0
 EXTRA_VERSION=177
 EXTRA_RELEASE=
-EXTRA_GTK2_VERSION=.1
+EXTRA_GTK2_VERSION=.2
 
 if test \( $EXTRA_VERSION -eq 0 \) -o \( "x$EXTRA_RELEASE" != "x" \); then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}${EXTRA_RELEASE}${EXTRA_GTK2_VERSION}
index 18a5674..c71ef48 100644 (file)
@@ -201,7 +201,8 @@ static HeaderEntry *addrharvest_find(
                HeaderEntry *entry;
 
                entry = node->data;
-               if( g_utf8_collate( entry->header, name ) == 0 ) {
+               if (g_ascii_strncasecmp(entry->header, name,
+                                       sizeof(entry->header)) == 0 ) {
                        retVal = entry;
                        break;
                }
@@ -555,6 +556,7 @@ static void addrharvest_parse_address(
                        }
                        else {
                                name = buffer;
+                               conv_unmime_header_overwrite(name);
                        }
 
                        /* Insert into address book */
@@ -586,7 +588,7 @@ static gboolean addrharvest_check_hdr( GList *listHdr, gchar *buf ) {
                node = listHdr;
                while( node ) {
                        nhdr = node->data;
-                       if( g_utf8_collate( nhdr, hdr ) == 0 ) {
+                       if (g_ascii_strncasecmp(nhdr, hdr, sizeof(nhdr)) == 0 ) {
                                retVal = TRUE;
                                break;
                        }