Respect format=flowed and delsp=yes for viewing plain-text messages
This commit is contained in:
@ -184,6 +184,7 @@ static void
|
||||
test_mu_msg_03 (void)
|
||||
{
|
||||
MuMsg *msg;
|
||||
GSList *params;
|
||||
|
||||
msg = get_msg (MU_TESTMAILDIR4 "/1283599333.1840_11.cthulhu!2,");
|
||||
g_assert_cmpstr (mu_msg_get_to(msg),
|
||||
@ -199,6 +200,14 @@ test_mu_msg_03 (void)
|
||||
g_assert_cmpstr (mu_msg_get_body_text(msg, MU_MSG_OPTION_NONE),
|
||||
==,
|
||||
"\nLet's write some fünkÿ text\nusing umlauts.\n\nFoo.\n");
|
||||
|
||||
params = mu_msg_get_body_text_content_type_parameters(msg, MU_MSG_OPTION_NONE);
|
||||
g_assert_cmpuint (g_slist_length ((GSList*)params), ==, 2);
|
||||
|
||||
g_assert_cmpstr ((char*)params->data,==, "charset");
|
||||
params = g_slist_next(params);
|
||||
g_assert_cmpstr ((char*)params->data,==,"UTF-8");
|
||||
|
||||
g_assert_cmpuint (mu_msg_get_flags(msg),
|
||||
==, MU_FLAG_UNREAD); /* not seen => unread */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user