commit 26b9c58713129f5c56af4c04d4fe4105d08e6d2d
parent 7f2b44d816687c86343251e0baeda263353ce631
Author: Colin Leroy <colin@colino.net>
Date: Mon, 29 Sep 2008 21:17:08 +0000
2008-09-29 [colin] 3.5.0cvs139
* src/common/utils.c
Fix case-sensitive match of subject
prefixes on win32
Diffstat:
4 files changed, 22 insertions(+), 15 deletions(-)
diff --git 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
diff --git a/PATCHSETS b/PATCHSETS
@@ -3550,3 +3550,4 @@
( 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
diff --git a/configure.ac b/configure.ac
@@ -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=
diff --git a/src/common/utils.c b/src/common/utils.c
@@ -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;