2008-09-29 [colin] 3.5.0cvs139
authorColin Leroy <colin@colino.net>
Mon, 29 Sep 2008 21:17:08 +0000 (21:17 +0000)
committerColin Leroy <colin@colino.net>
Mon, 29 Sep 2008 21:17:08 +0000 (21:17 +0000)
* src/common/utils.c
Fix case-sensitive match of subject
prefixes on win32

ChangeLog
PATCHSETS
configure.ac
src/common/utils.c

index dbc2266..36d6961 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-09-29 [colin]     3.5.0cvs139
+
+       * src/common/utils.c
+               Fix case-sensitive match of subject
+               prefixes on win32
+
 2008-09-29 [colin]     3.5.0cvs138
 
        * src/folder_item_prefs.c
index d17ff1e..c6cc6d5 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.61.2.88 -r 1.61.2.89 src/account.c;  cvs diff -u -r 1.11.2.12 -r 1.11.2.13 src/account.h;  ) > 3.5.0cvs136.patchset
 ( cvs diff -u -r 1.12.2.17 -r 1.12.2.18 po/en_GB.po;  ) > 3.5.0cvs137.patchset
 ( cvs diff -u -r 1.2.2.31 -r 1.2.2.32 src/folder_item_prefs.c;  cvs diff -u -r 1.2.2.18 -r 1.2.2.19 src/folder_item_prefs.h;  cvs diff -u -r 1.75.2.60 -r 1.75.2.61 src/matcher.c;  cvs diff -u -r 1.52.2.69 -r 1.52.2.70 src/prefs_folder_item.c;  cvs diff -u -r 1.43.2.76 -r 1.43.2.77 src/prefs_matcher.c;  cvs diff -u -r 1.395.2.391 -r 1.395.2.392 src/summaryview.c;  cvs diff -u -r 1.1.4.5 -r 1.1.4.6 src/common/string_match.c;  cvs diff -u -r 1.36.2.150 -r 1.36.2.151 src/common/utils.c;  ) > 3.5.0cvs138.patchset
+( cvs diff -u -r 1.36.2.151 -r 1.36.2.152 src/common/utils.c;  ) > 3.5.0cvs139.patchset
index e19e3fc..d3f1c94 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=5
 MICRO_VERSION=0
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=138
+EXTRA_VERSION=139
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index a157886..c461aec 100644 (file)
@@ -3699,19 +3699,19 @@ int subject_get_prefix_length(const gchar *subject)
 #else
        /*!< Array with allowable reply prefixes regexps. */
        static const gchar * const prefixes[] = {
-               "Re:",                  /* "Re:" */
-               "Antw:",                        /* "Antw:" (Dutch / German Outlook) */
-               "Aw:",                  /* "Aw:"   (German) */
-               "Antwort:",                     /* "Antwort:" (German Lotus Notes) */
-               "Res:",                 /* "Res:" (Brazilian Outlook) */
-               "Fw:",                  /* "Fw:" Forward */
-               "Fwd:",                 /* "Fwd:" Forward */
-               "Enc:",                 /* "Enc:" Forward (Brazilian Outlook) */
-               "Odp:",                 /* "Odp:" Re (Polish Outlook) */
-               "Rif:",                 /* "Rif:" (Italian Outlook) */
-               "Sv:",                  /* "Sv" (Norwegian) */
-               "Vs:",                  /* "Vs" (Norwegian) */
-               "Ad:",                  /* "Ad" (Norwegian) */
+               "re:",                  /* "Re:" */
+               "antw:",                        /* "Antw:" (Dutch / German Outlook) */
+               "aw:",                  /* "Aw:"   (German) */
+               "antwort:",                     /* "Antwort:" (German Lotus Notes) */
+               "res:",                 /* "Res:" (Brazilian Outlook) */
+               "fw:",                  /* "Fw:" Forward */
+               "fwd:",                 /* "Fwd:" Forward */
+               "enc:",                 /* "Enc:" Forward (Brazilian Outlook) */
+               "odp:",                 /* "Odp:" Re (Polish Outlook) */
+               "rif:",                 /* "Rif:" (Italian Outlook) */
+               "sv:",                  /* "Sv" (Norwegian) */
+               "vs:",                  /* "Vs" (Norwegian) */
+               "ad:",                  /* "Ad" (Norwegian) */
                /* add more */
        };
        const int PREFIXES = sizeof prefixes / sizeof prefixes[0];
@@ -3722,7 +3722,7 @@ int subject_get_prefix_length(const gchar *subject)
 
        for (n = 0; n < PREFIXES; n++) {
                int len = strlen(prefixes[n]);
-               if (!strncmp(subject, prefixes[n], len))
+               if (!strncasecmp(subject, prefixes[n], len))
                        return len;
        }
        return 0;