cli: support --ignored-address for init command

Allow for skipping unwanted addresses (such as 'noreply') from the
contacts cache.
This commit is contained in:
Dirk-Jan C. Binnema
2023-07-01 19:03:51 +03:00
parent 5dc41ed811
commit c4b5795328
7 changed files with 44 additions and 14 deletions

View File

@ -188,8 +188,6 @@ ContactsCache::Private::serialize() const
dirty_ = 0;
}
ContactsCache::ContactsCache(Config& config_db)
: priv_{std::make_unique<Private>(config_db)}
{}
@ -381,9 +379,6 @@ ContactsCache::is_ignored(const std::string& addr) const
return address_matches(addr, priv_->ignored_plain_, priv_->ignored_rx_);
}
#ifdef BUILD_TESTS
/*
* Tests.