diff options
| author | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2022-07-19 21:54:26 +0300 |
|---|---|---|
| committer | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2022-07-19 21:54:26 +0300 |
| commit | 1c57d91e267633b8da95eec8346529d8b79e33a1 (patch) | |
| tree | 2469f0c2132943bf2285d786e4d5abce419b2bed | |
| parent | ad7f5cac92004407a6841e36cdeb614c2c52072f (diff) | |
mu-find: don't show deleted messages
Filter out messages for which there is no corresponding file.
Fixes #2306.
| -rw-r--r-- | mu/mu-cmd-find.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mu/mu-cmd-find.cc b/mu/mu-cmd-find.cc index 0d65271..898244f 100644 --- a/mu/mu-cmd-find.cc +++ b/mu/mu-cmd-find.cc @@ -76,7 +76,7 @@ run_query(const Store& store, const std::string& expr, const MuConfig* opts) return Err(Error::Code::InvalidArgument, "invalid sort field: '%s'", opts->sortfield); - Mu::QueryFlags qflags{QueryFlags::None}; + Mu::QueryFlags qflags{QueryFlags::SkipUnreadable}; if (opts->reverse) qflags |= QueryFlags::Descending; if (opts->skip_dups) |
