diff -urp tin-2.3.1_r8/src/cook.c tin-2.3.1_r9/src/cook.c --- tin-2.3.1_r8/src/cook.c 2015-10-07 19:25:19.000000000 +0200 +++ tin-2.3.1_r9/src/cook.c 2015-10-09 17:02:54.000000000 +0200 @@ -658,16 +658,16 @@ process_text_body_part( else if (quote_regex2.re) { if (MATCH_REGEX(quote_regex2, line, len)) flags |= C_QUOTE2; - else if (quote_regex.re) { - if (MATCH_REGEX(quote_regex, line, len)) - flags |= C_QUOTE1; + else if (curr_group->attribute->extquote_handling && extquote_regex.re) { + if (MATCH_REGEX(extquote_regex, line, len)) + flags |= C_EXTQUOTE; + else if (quote_regex.re) { + if (MATCH_REGEX(quote_regex, line, len)) + flags |= C_QUOTE1; + } } } } - if (curr_group->attribute->extquote_handling && extquote_regex.re) { - if (MATCH_REGEX(extquote_regex, line, len)) - flags |= C_EXTQUOTE; - } #endif /* HAVE_COLOR */ if (MATCH_REGEX(url_regex, line, len))