[claws-mail-cvs-commit] utils.c
Colin Leroy <[email protected]> Fri, 21 Aug 2009 15:54:04 +0000
| Newsgroups | gmane.mail.sylpheed.claws.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /srv/cvs/claws-mail/claws/src/common
In directory ran:/tmp/cvs-serv17705/src/common
Modified Files:
Tag: gtk2
utils.c
Log Message:
2009-08-21 [colin] 3.7.2cvs21
* AUTHORS
* src/gtk/authors.h
* src/common/utils.c
Add Réf. : reply prefix (french Lotus Notes); patch
by Didier Barvaux
Index: utils.c
===================================================================
RCS file: /srv/cvs/claws-mail/claws/src/common/utils.c,v
retrieving revision 1.36.2.172
retrieving revision 1.36.2.173
diff -u -d -r1.36.2.172 -r1.36.2.173
--- utils.c 12 Jun 2009 10:02:11 -0000 1.36.2.172
+++ utils.c 21 Aug 2009 15:54:01 -0000 1.36.2.173
@@ -3666,18 +3666,6 @@
g_hash_table_remove(subject_table, subject);
}
-/*!
- *\brief Check if a string is prefixed with known (combinations)
- * of prefixes. The function assumes that each prefix
- * is terminated by zero or exactly _one_ space.
- *
- *\param str String to check for a prefixes
- *
- *\return int Number of chars in the prefix that should be skipped
- * for a "clean" subject line. If no prefix was found, 0
- * is returned.
- */
-
#ifndef G_OS_WIN32
static regex_t u_regex;
static gboolean u_init_;
@@ -3693,6 +3681,17 @@
#endif
}
+/*!
+ *\brief Check if a string is prefixed with known (combinations)
+ * of prefixes. The function assumes that each prefix
+ * is terminated by zero or exactly _one_ space.
+ *
+ *\param str String to check for a prefixes
+ *
+ *\return int Number of chars in the prefix that should be skipped
+ * for a "clean" subject line. If no prefix was found, 0
+ * is returned.
+ */
int subject_get_prefix_length(const gchar *subject)
{
#ifndef G_OS_WIN32
@@ -3712,7 +3711,8 @@
"Sv\\:", /* "Sv" (Norwegian) */
"Vs\\:", /* "Vs" (Norwegian) */
"Ad\\:", /* "Ad" (Norwegian) */
- "\347\255\224\345\244\215\\:" /* "Re" (Chinese, UTF-8) */
+ "\347\255\224\345\244\215\\:", /* "Re" (Chinese, UTF-8) */
+ "R\303\251f\\. \\:", /* "Réf. :" (French Lotus Notes) */
/* add more */
};
const int PREFIXES = sizeof prefixes / sizeof prefixes[0];
@@ -3770,6 +3770,7 @@
"sv:", /* "Sv" (Norwegian) */
"vs:", /* "Vs" (Norwegian) */
"ad:", /* "Ad" (Norwegian) */
+ "R\303\251f. :", /* "Réf. :" (French Lotus Notes) */
/* add more */
};
const int PREFIXES = sizeof prefixes / sizeof prefixes[0];