summaryrefslogtreecommitdiff
path: root/lib/mu-contacts-cache.cc
AgeCommit message (Collapse)Author
2025-09-02mu: refactor labels codeDirk-Jan C. Binnema
Split labels-cache and store-labels.
2025-07-27contacts-cache: cosmeticsDirk-Jan C. Binnema
2025-06-10mu-cfind/contacts-cache: refactor matching in for_eachDirk-Jan C. Binnema
Move some of the code in from the command-line tool to contacts-cache, for possible re-use. Clean up a bit while doing so.
2025-05-26contacts/contacts-cache: cleanupsDirk-Jan C. Binnema
refactor code a bit; move sorting to Contact remove unneeded hashing in Contact (just use the email address)
2024-06-17logging: reduce debug logging a bitDirk-Jan C. Binnema
2024-04-02mu-contact: move email validation to contacts cacheDirk-Jan C. Binnema
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!
2023-10-30mu-contacts: remove some debug loggingDirk-Jan C. Binnema
2023-07-11lib/contacts-cache: improve codeDirk-Jan C. Binnema
2023-07-08migrate to fmt-based logging in some more placesDirk-Jan C. Binnema
and improve logging.
2023-07-05update to use fmt-based apisDirk-Jan C. Binnema
Not complete, but a first big stab converting users of Mu::Error and various g_warning & friends, format to the new libfmt-based APIs.
2023-07-02cli: support --ignored-address for init commandDirk-Jan C. Binnema
Allow for skipping unwanted addresses (such as 'noreply') from the contacts cache.
2023-07-02lib: support ignoring addresses for contacts-cacheDirk-Jan C. Binnema
Skip annoying 'noreply' & friends.
2023-07-02lib/contacts-cache: rework using configDirk-Jan C. Binnema
Use the new config class to pass information and serialization.
2023-02-28server: don't encode addresses in contacts_handlersDirk-Jan C. Binnema
Seems it doesn't always play nice with composer
2023-01-31build: bump schema version, update contacts-cacheDirk-Jan C. Binnema
Bump schema version to trigger update after we added html processing. Since we're updating the database schema version, let's use the opportunity to remove outdated data from the contacts-cache.
2022-12-30message/contact: ensure valid email address in cacheDirk-Jan C. Binnema
Filter out the (rare but existent) invalid email addresses from the cache; use the new method Contact::has_valid_email for that.
2022-12-30many: use Mu::Regex instead of std::regexDirk-Jan C. Binnema
The former is PCRE-compatible, and faster than std::regex.
2022-08-11tests: update test helpers and usersDirk-Jan C. Binnema
Move test-mu-common to mu-test-utils. Use mu_test_init as a wrapper for g_test_init. Update users.
2022-06-02lib: improve test coverageDirk-Jan C. Binnema
Add a bunch of tests
2022-05-09contacts-cache: return most relevant contactsDirk-Jan C. Binnema
Return in the contacts in *reverse* rank order, i.e. the most relevant come first. This is useful since we only want the first maxnum contacts, and those should of course be the most relevant. Update mu cfind/server as well. cfind
2022-05-06mu/mu4e: implement mu4e-compose-complete-maxDirk-Jan C. Binnema
Allow limiting number of contacts for auto-completion to a specific number; defaulting to 2000.
2022-05-05message: support 'personal' flag for messagesDirk-Jan C. Binnema
Add a new flag 'personal' for a message, which means that at least one of the contact fields is personal.
2022-04-30contacts-cache: handle 'personal' mail for groupsDirk-Jan C. Binnema
When passing a vec of _all_ contacts for some message, mark _all_ of them as personal if at least _one_ is a personal address.
2022-03-26many: update for lib/message updatesDirk-Jan C. Binnema
Adapt to the new names / directory. Big commit, but mostly just very boring renaming.
2022-03-07contacts-cache: refactor personal checkDirk-Jan C. Binnema
2022-02-21contacts-cache: Rework to use MessageContactDirk-Jan C. Binnema
Replace the internal ContactInfo with MessageContact, so we can use the same type throughout.
2022-02-21lib: rename contacts into contacts-cacheDirk-Jan C. Binnema
Plus dependents.