Commit Graph

23 Commits

Author SHA1 Message Date
Jonas Bernoulli f31d1b065d Fix typos 2019-11-06 16:13:39 +01:00
Dirk-Jan C. Binnema 63b556da6d mu-util: fix warning 2019-08-01 22:44:03 +03:00
Dirk-Jan C. Binnema 83d6484f86 lib/mu-store: rework implementation
* mu-store.h, mu-store-read.cc, mu-store-write.cc, mu-store-priv.hh have been reworked
   in mu-store.{cc,hh}, it the mix of c/c++ improved
 * update all the dependent modules
 * make it easier to upgrade an database in place (without user intervention)
 * remove the xbatch-size option
2019-07-30 08:51:04 +03:00
Dirk-Jan C. Binnema 632f383c38 mu: Default to XDG Base Directory Specification
Instead of using ~/.mu, use the XDG Base Directory Specification, typically:
  ~/.cache/xapian
  ~/.cache/mu.log
  ~/.cache/parts
  ~/.config/bookmarks

Update dependencies, documentation.
2019-07-13 16:00:28 +03:00
djcb 17c97d4606 mu: remove some dead code 2017-10-25 23:50:17 +03:00
Ævar Arnfjörð Bjarmason 18b8ce249f Add support for specifying --muhome via MU_HOME in the environment
When you have multiple mu home directories, e.g. for the use case
detailed in my "Changing mu4e-{maildir,mu-home} from a context hook"
post to the mailing list it's quite inconvenient to have to hammer out
"mu --muhome=.. find .." every time you want to run some ad-hoc
command.

This allows me to set up a screen session where I do searches in mu
directory A in some screen panes, and searches in directory B in
others.

I initially called this MU_MUHOME but then I noticed that the perl
plugin has MUP_MU_HOME for analogous functionality, so I'm just
following its example.

The code I'm adding in mu-util.c is just a copy/paste & adjustment of
the same sort of already tested functionality in
mu_util_guess_maildir() just a few lines earlier.
2017-02-17 11:28:45 +01:00
djcb 2a83b02ce2 mu: cosmetic 2016-07-23 19:14:13 +03:00
djcb fe8b3430c6 mu: optimize indexing (get_uid_term)
Some users were report seeing get_uid_term high in the profiles; so
optimize this:

- make mu_util_get_hash a static inline function (used by get_uid_term)
- don't use 'realpath' in get_uid_term, seem that's the main culprit
- some slight faster string handling there too.
2015-11-17 10:55:56 +02:00
djcb 7eb244b3b0 mu: don't use __FUNCTION__, use __func__
__FUNCTION__ is deprecated and gives compilation warnings. __func__ is
standardized in c99.
2015-04-22 21:06:31 +03:00
djcb 885554757a * mu: some improvement in script handling 2013-07-23 22:23:27 +03:00
djcb 855e81db99 * update copyright years 2013-03-30 11:32:07 +02:00
djcb f5f8d6de70 * mu_store_needs_upgrade --> mu_store_versions_match 2013-01-06 15:53:42 +02:00
djcb 1a14d19cad * mu-util: add mu_util_get_hash (refactored) 2012-12-25 16:45:05 +02:00
djcb 34f47ae5ca * cosmetics 2012-10-22 23:15:28 +03:00
djcb da9c4bf4f7 * lib: add mu_util_support and mu_util_program_in_path + unit tests 2012-10-18 12:11:43 +03:00
djcb 3fe6eec8e0 * cosmetics 2012-09-20 21:25:55 +03:00
djcb 52bc720258 * lib/mu-util: add mu_util_read_password 2012-09-13 22:56:08 +03:00
djcb 93171a5b90 * lib: try to reopen database when it got updated from the outside (for guile) 2012-08-19 09:57:49 +03:00
djcb cf2b81c009 * lib: centralize MAX_PATH stuff 2012-08-03 18:43:59 +03:00
djcb 5a92c8b58a * crypto: decryption support (WIP) 2012-07-22 19:39:17 +03:00
djcb c9fc49cfd6 * cosmetics 2012-07-12 15:47:11 +03:00
djcb 9367f1ac6d * support '.noupdate' -- similar to '.noindex', maildirs containing
'.noupdate' will be ignored; however, they will _not_ be ignored when doing
  a full update (--rebuild)
2012-05-22 10:19:49 +03:00
djcb 46f10cfde9 * refactoring: split src/ into mu/ and lib/ 2012-05-21 09:25:53 +03:00