Commit Graph

42 Commits

Author SHA1 Message Date
djcb 9edcae0203 update store, msg for new contacts-cache handling 2019-05-11 13:41:03 +03:00
djcb 8193cc3e4c contacts: rework: install in database
Rewrite the contacts-cache backend in c++

Store the contacts as metadata in the xapian database, rather than in a
separate file.

Update the Store to deal with this.
2019-05-11 13:41:03 +03:00
djcb 93c6ff1f85 mu: protect against overly long keys
We got some errors when some of the key values exceeded the Xapian
maximum; in particular the message-id.

So make all the key-methods check, and truncate the message-id if
necessary.
2018-08-14 21:57:33 +03:00
djcb 5e9cafea59 integrate new query parser 2017-10-25 23:50:17 +03:00
djcb 72a1da9da8 mu: fix some compiler warnings 2016-12-28 16:32:39 +02:00
djcb d30e0ab2ba mu: fix contacts callback return value
The callbacks for the contacts functions should return TRUE (or be
terminated early), but were void. Seems on Linux this usually still
worked, not so on OpenBSD at least (unit test broke). So, fix this.
2016-11-16 20:20:15 +02:00
djcb 775eb3f715 mu: write contacts-cache a bit sooner
Write the changes to the cache file after any indexing operation, so `mu
cfind` gets new contacts a bit sooner.
2016-02-21 19:48:21 +02:00
Piotr Trojanek d35d21a812 Misleading comment removed
Removed a comment which seemed to be copy-pasted from
add_terms_values_str. It did not applied to add_terms_values_msgid.
2015-09-22 09:09:39 +01:00
Piotr Trojanek 804a25d668 minor whitespace fixes 2015-09-22 09:09:39 +01:00
djcb 0c18a0b816 * mu: store date as 0 if it does not exist; this allows searching 2014-03-22 18:51:39 +02:00
djcb c36030a086 * handle message-ids a bit specially, update unit tests 2013-10-13 20:05:29 +03:00
djcb 1fcedf742c * mu-mgs-store: support the MU_FLAG_LIST flag 2013-07-03 21:55:41 +03:00
djcb b136ca0411 * try harder to match special strings 2013-05-29 07:33:17 -07:00
djcb 5d069e786f * lib: updates for mu-msg-field / mu-str updates 2013-05-13 00:03:47 +03:00
djcb 3327a5566f * minor 2013-04-18 20:31:42 +03:00
djcb 88520e45ec * mu-store-write: fix small leak 2013-04-17 00:16:26 +03:00
djcb a5001acff0 * mu: more 'fixing'/'massaging' of queries 2013-04-17 00:09:08 +03:00
djcb 7c53aa327c * mu: handle addresses thay go beyond xapian's max term length (fixes issue #183)
(we truncate them)
2013-04-09 22:01:36 +03:00
djcb 3dc98724b3 * mu: provide fake-msgids for messages without; this fixes the problem where e.g. draft messages
were not visible when using --include-related
2013-04-09 21:20:25 +03:00
djcb 855e81db99 * update copyright years 2013-03-30 11:32:07 +02:00
djcb 332554c2b0 * mu: update unit test (after more eager address matching) 2013-02-12 00:00:40 +02:00
djcb bb2b65220a * for email address foo@bar.com, also save "foo" and "bar.com" so you can
search for them
2013-01-13 22:49:49 +02:00
djcb 9beed7042b * mu-store-write.cc: fix handling of str_list fields during indexing (Abdo Roig-Maranges) 2013-01-04 21:10:39 +02:00
djcb a625371da2 * lib/: a the thread-id field, store it in the database 2012-12-25 16:43:34 +02:00
djcb 241af50e97 * update / add testcases for string normalization 2012-12-09 13:34:16 +02:00
djcb 30f93663b0 * lib: do some more escaping of body text 2012-11-18 22:09:56 +02:00
djcb 11ecc65109 * update (C) years 2012-10-24 11:42:57 +03:00
djcb dcda69e459 * lib: don't check for bogus error 2012-08-23 00:00:28 +03:00
djcb 90674172b9 * mu-store-write: use 'Xapian:WritableDatabase::commit' rather than '...flush' 2012-08-19 09:56:38 +03:00
djcb ea86b71294 * lib: fix embedded text indexing 2012-08-09 10:54:05 +03:00
djcb 70856427cf * cosmetic 2012-08-09 10:34:05 +03:00
djcb abfcc4a2f3 * updates for mu_msg_get_body_(text|html) api change 2012-08-09 09:38:58 +03:00
djcb a91fa644d5 * lib: correctly handle embedded text parts 2012-08-07 11:43:54 +03:00
djcb 67a9282fc9 * updates for mu-msg-part changes 2012-08-01 17:02:43 +03:00
djcb f1a2e94b1a * crypto: update for crypto api changes 2012-07-27 18:04:49 +03:00
djcb a3b4edf56a * updates for mu-msg-part changes 2012-07-24 22:12:49 +03:00
djcb acfabfdf4b * refactor: MU_MSG_PART_OPTION -> MU_MSG_OPTION and related changes 2012-07-18 16:22:10 +03:00
djcb 9e59b1f29b * crypto: update other mu-msg-part users for api changes 2012-07-17 19:17:09 +03:00
djcb dea26471d0 * fix _MuStore initialization; proliferate API change 2012-06-20 20:33:58 +03:00
djcb 3159d97105 * mu-store*: detect 'my-addresses' in messages, so we can mark contacts as 'personal' 2012-06-18 18:02:12 +03:00
djcb 423a1d7140 * mu4e: use GStringChunk* for string normalization / escaping
- this should fix the rare bug for some non-Latin unicode blocks,
  simplify some code, and possibly improve performance a bit
2012-06-12 00:11:14 +03:00
djcb 46f10cfde9 * refactoring: split src/ into mu/ and lib/ 2012-05-21 09:25:53 +03:00