notmuch-mutt: do not clear search cache Maildir when nothing is found

The previous results might be useful to the user but
an empty directory definitely isn't useful.
This commit is contained in:
Paul Wise 2023-05-28 10:29:45 +08:00 committed by David Bremner
parent 85916d8a96
commit 18e35950da

View file

@ -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";
}