count = 1;
switch (ctx->state) {
case SNIPPET_STATE_NEWLINE:
- if (data[i] == '>' && ctx->html2text == NULL) {
+ if (data[i] == '>') {
ctx->state = SNIPPET_STATE_QUOTED;
i++;
target = &ctx->quoted_snippet;
if (ct == NULL)
/* text/plain */ ;
else if (mail_html2text_content_type_match(ct)) {
- ctx.html2text = mail_html2text_init(MAIL_HTML2TEXT_FLAG_SKIP_QUOTED);
+ ctx.html2text = mail_html2text_init(0);
ctx.plain_output = buffer_create_dynamic(pool, 1024);
} else if (strncasecmp(ct, "text/", 5) != 0)
break;
"> -foo\n"
"</div><br =class=3D\"\"></body></html>=\n",
100,
- "Hi, How is it going? > -foo" },
+ "Hi, How is it going?" },
{ "Content-Transfer-Encoding: quoted-printable\n"
"Content-Type: application/xhtml+xml;\n"
"> -foo\n"
"</div><br =class=3D\"\"></body></html>=\n",
100,
- "Hi, How is it going? > -foo" },
+ "Hi, How is it going?" },
{ "Content-Type: text/plain\n"
"\n"
">quote1\n>quote2\n",
"class=3D\"\"><div><blockquote>quoted text is included</blockquote>\n"
"</div><br =class=3D\"\"></body></html>=\n",
100,
- "" },
+ ">quoted text is included" },
};
static void test_message_snippet(void)