]> git.cworth.org Git - notmuch/commitdiff
notmuch-mutt: do not clear search cache Maildir when nothing is found
authorPaul Wise <pabs3@bonedaddy.net>
Sun, 28 May 2023 02:29:45 +0000 (10:29 +0800)
committerDavid Bremner <david@tethera.net>
Sun, 28 May 2023 18:33:11 +0000 (15:33 -0300)
The previous results might be useful to the user but
an empty directory definitely isn't useful.

contrib/notmuch-mutt/notmuch-mutt

index 0f7379acdca85852821c858300f691c04912e614..875fd032d522a8aaa3ca77178af4109c4e1d7406 100755 (executable)
@@ -120,7 +120,6 @@ sub thread_action($$@) {
 
     my $mid = get_message_id();
     if (! defined $mid) {
-       empty_search_cache_maildir($results_dir);
        die "notmuch-mutt: cannot find Message-Id, abort.\n";
     }