X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Findex.cc;h=bdfb8ed5c363aea8a2c44e3a8d9ce902185118ab;hp=00478f8db53f054d7917705f9b18c073c8bfa098;hb=c7b4d15d0ad78b6f28b50310358ae255e6a08008;hpb=44ea57a0d10ddab514abea319c4d25ec4e36b51e diff --git a/lib/index.cc b/lib/index.cc index 00478f8d..bdfb8ed5 100644 --- a/lib/index.cc +++ b/lib/index.cc @@ -304,26 +304,6 @@ _index_address_list (notmuch_message_t *message, } } -static const char * -skip_re_in_subject (const char *subject) -{ - const char *s = subject; - - if (subject == NULL) - return NULL; - - while (*s) { - while (*s && isspace (*s)) - s++; - if (strncasecmp (s, "re:", 3) == 0) - s += 3; - else - break; - } - - return s; -} - /* Callback to generate terms for each mime part of a message. */ static void _index_mime_part (notmuch_message_t *message, @@ -459,7 +439,6 @@ _notmuch_message_index_file (notmuch_message_t *message, _index_address_list (message, "to", addresses); subject = g_mime_message_get_subject (mime_message); - subject = skip_re_in_subject (subject); _notmuch_message_gen_terms (message, "subject", subject); _index_mime_part (message, g_mime_message_get_mime_part (mime_message));