From b4219bd06ba47c84d2155993129b839ba04acfff Mon Sep 17 00:00:00 2001 From: djcb Date: Sun, 16 Sep 2012 18:00:51 +0300 Subject: [PATCH] * minor --- lib/mu-msg-part.c | 2 -- lib/tests/test-mu-str.c | 18 ++++++++++++------ man/mu-find.1 | 2 ++ 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/lib/mu-msg-part.c b/lib/mu-msg-part.c index bea50893..01e8b9ef 100644 --- a/lib/mu-msg-part.c +++ b/lib/mu-msg-part.c @@ -355,8 +355,6 @@ get_console_pw (const char* user_id, const char *prompt_ctx, { char *prompt, *pass; - /* versions <= 2.6.10 have the bug. gmime-git has it fixed, - * but there is no 2.6.11 yet (2012-09-14) */ if (!g_mime_check_version(2,6,11)) g_printerr ( "*** the gmime library you are using has version " diff --git a/lib/tests/test-mu-str.c b/lib/tests/test-mu-str.c index 557c32ce..33665b77 100644 --- a/lib/tests/test-mu-str.c +++ b/lib/tests/test-mu-str.c @@ -141,7 +141,9 @@ test_mu_str_normalize_02 (void) { "foo", "foo" }, { "Föö", "Foo" }, { "číslO", "cislO" }, - { "hÆvý mëÐal ümláõt", "hAevy meDal umlaot"} + { "hÆvý mëÐal ümláõt", "hAevy meDal umlaot"}, + { "£300", "£300" } + }; @@ -163,10 +165,12 @@ test_mu_str_esc_to_list (void) const char* str; const char* strs[3]; } strings [] = { - { "maildir:foo", {"maildir:foo", NULL, NULL}}, - { "maildir:sent items", {"maildir:sent", "items", NULL}}, - { "\"maildir:sent items\"", {"maildir:sent items", NULL, NULL}}, - + { "maildir:foo", + {"maildir:foo", NULL, NULL}}, + { "maildir:sent items", + {"maildir:sent", "items", NULL}}, + { "\"maildir:sent items\"", + {"maildir:sent items", NULL, NULL}}, }; for (i = 0; i != G_N_ELEMENTS(strings); ++i) { @@ -200,7 +204,8 @@ test_mu_str_xapian_escape (void) { "x:2010..2012", "x:2010__2012"}, { "q:2010..2012", "q_2010__2012"}, { "subject:2010..2012", "subject:2010__2012"}, - { "(maildir:foo)", "(maildir:foo)"} + { "(maildir:foo)", "(maildir:foo)"}, + { "£300", "£300" } }; for (i = 0; i != G_N_ELEMENTS(words); ++i) { @@ -229,6 +234,7 @@ test_mu_str_xapian_escape_non_ascii (void) { "Masha@Аркона.ru", "masha_аркона_ru" }, { "foo:ελληνικά", "foo_ελληνικά" }, { "日本語!!", "日本語__" }, + { "£", "£" } }; for (i = 0; i != G_N_ELEMENTS(words); ++i) { diff --git a/man/mu-find.1 b/man/mu-find.1 index ea96c81a..1e9445c4 100644 --- a/man/mu-find.1 +++ b/man/mu-find.1 @@ -509,6 +509,8 @@ Find all messages with attached images: Note[1]: the argument needs to be quoted, or the shell will interpret the '*' Note[2]: the '*' wild card can only be used as the last (rightmost) part of a search term. +Note[3]: non-word characters (such as € or ☺) are ignore in queries; you +cannot search for them. .SS Integrating mu find with mail clients