diff --git a/lib/mu-str.c b/lib/mu-str.c index 803c7fb7..22169be5 100644 --- a/lib/mu-str.c +++ b/lib/mu-str.c @@ -303,6 +303,8 @@ mu_str_esc_to_list (const char *strings) kar = strings[u]; if (kar == '\\') { + if (escaped) + g_string_append_c (part, '\\'); escaped = !escaped; continue; } diff --git a/lib/tests/test-mu-str.c b/lib/tests/test-mu-str.c index cfdf23a7..b8f37da8 100644 --- a/lib/tests/test-mu-str.c +++ b/lib/tests/test-mu-str.c @@ -198,6 +198,7 @@ test_mu_str_process_query_term (void) { "Foo..Bar", "foo..bar" }, { "Foo.Bar", "foo_bar" }, { "Foo Bar", "foo_bar" }, + { "\\foo", "_foo" }, { "subject:test@foo", "subject:test_foo" }, { "xxx:test@bar", "xxx:test_bar" }, { "aa$bb$cc", "aa_bb_cc" }, @@ -239,6 +240,7 @@ test_mu_str_process_term (void) { "Foo..Bar", "foo__bar" }, { "Foo.Bar", "foo_bar" }, { "Foo Bar", "foo_bar" }, + { "\\foo", "_foo" }, { "subject:test@foo", "subject_test_foo" }, { "xxx:test@bar", "xxx_test_bar" }, { "aa$bb$cc", "aa_bb_cc" }, diff --git a/lib/tests/testdir2/bar/cur/mail4 b/lib/tests/testdir2/bar/cur/mail4 index 1f160892..4d21a48d 100644 --- a/lib/tests/testdir2/bar/cur/mail4 +++ b/lib/tests/testdir2/bar/cur/mail4 @@ -13,6 +13,7 @@ Organization: http://freemail.web.de/ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mailhost6.ladot.com id j48MScQ30791 +X-Label: \backslash X-UIDL: 93h!!\i