diff options
| author | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2024-04-01 20:51:40 +0300 |
|---|---|---|
| committer | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2024-04-02 07:40:20 +0300 |
| commit | d13feb2d992d52e36eb3e767619945ac02163326 (patch) | |
| tree | 9376ebe38248ef610a590432f95a268a068fc0d3 /mu | |
| parent | 2e40852abc5d443a331a726fc2ae7f0dfa13f38e (diff) | |
mu-contact: move email validation to contacts cache
So we can be sure the regexp is initialized. This _may_ help for
https://bugzilla.opensuse.org/show_bug.cgi?id=1221861
though it is very hard to tell!
Diffstat (limited to 'mu')
| -rw-r--r-- | mu/mu-cmd-cfind.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mu/mu-cmd-cfind.cc b/mu/mu-cmd-cfind.cc index 5385c9c..9c61595 100644 --- a/mu/mu-cmd-cfind.cc +++ b/mu/mu-cmd-cfind.cc @@ -278,7 +278,7 @@ Mu::mu_cmd_cfind(const Mu::Store& store, const Mu::Options& opts) if (opts.cfind.maxnum && num > *opts.cfind.maxnum) return false; /* stop the loop */ - if (!contact.has_valid_email()) + if (!store.contacts_cache().is_valid(contact.email)) return true; /* next */ // filter for maxnum, personal & "after" |
