From: Colin Leroy Date: Mon, 29 Sep 2008 21:17:08 +0000 (+0000) Subject: 2008-09-29 [colin] 3.5.0cvs139 X-Git-Tag: rel_3_6_0~9 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=26b9c58713129f5c56af4c04d4fe4105d08e6d2d 2008-09-29 [colin] 3.5.0cvs139 * src/common/utils.c Fix case-sensitive match of subject prefixes on win32 --- diff --git a/ChangeLog b/ChangeLog index dbc22666a..36d696193 100644 --- 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 index d17ff1e9a..c6cc6d525 100644 --- 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 index e19e3fcc4..d3f1c94ec 100644 --- 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 index a1578866d..c461aec24 100644 --- 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;