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!
This commit is contained in:
@ -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"
|
||||
|
||||
Reference in New Issue
Block a user