+2003-06-13 [alfons] 0.9.0claws36
+
+ * src/utils.c
+ add several other subject reply prefixes (suggested by Christoph and Ivan Martinez)
+ use case insensitive regexp (suggested by Ivan Martinez)
+
2003-06-13 [christoph] 0.9.0claws35
* configure.ac
{
/*!< Array with allowable reply prefixes regexps. */
static const gchar * const reply_prefixes[] = {
- "[Rr][Ee]\\:", /* "Re:" */
- "[Rr][Ee]\\[[1-9][0-9]*\\]\\:", /* Intelligent but stupidly non-conforming Re[XXX]:*/
- "[Aa][Nn][Tt][Ww]\\:", /* Overactive i18n / translation teams */
- "[Aa][Ww]\\:" /* "Aw:" */
+ "Re\\:", /* "Re:" */
+ "Re\\[[1-9][0-9]*\\]\\:", /* "Re[XXX]:" (non-conforming news mail clients) */
+ "Antw\\:", /* "Antw:" (Dutch / German Outlook) */
+ "Aw\\:", /* "Aw:" (German) */
+ "Antwort\\:", /* "Antwort:" (German Lotus Notes) */
+ "Res\\:" /* "Res:" (Brazilian Outlook) */
/* add more */
};
const int REPLY_PREFIXES = sizeof reply_prefixes / sizeof reply_prefixes[0];
/* We now have something like "^\ *((PREFIX1\ ?)|(PREFIX2\ ?))+"
* TODO: Should this be "^\ *(((PREFIX1)|(PREFIX2))\ ?)+" ??? */
- if (regcomp(®ex, s->str, REG_EXTENDED)) {
+ if (regcomp(®ex, s->str, REG_EXTENDED | REG_ICASE)) {
debug_print("Error compiling regexp %s\n", s->str);
g_string_free(s, TRUE);
return 0;