1
0
mirror of https://github.com/djcb/mu.git synced 2024-06-26 07:29:17 +02:00
Commit Graph

28 Commits

Author SHA1 Message Date
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
Hong Xu
887e75c4ee Child processes should be session leaders.
If not, when the session of mu is killed, these child processes are also
killed. This scenario shows up when using mu4e: a PDF attachment, for
example, is opened by Evince, but as soon as Emacs exits, Evince is also
killed.
2016-12-28 13:51:20 +02:00
djcb
78275278cf mu: fix some compiler warnings 2016-12-11 18:33:31 +02:00
djcb
98505aa23b mu: fix mu_util_fputs_encode for non-utf8
mu_util_fputs_encode was aborting on behalf of the stack-guard on
OpenBSD (seemingly only when compile with optimization). It appears as
if the root cause of this was a differences in sizes of the parameters
to g_locale_from_utf8. Fix this.
2016-11-16 20:23:03 +02:00
djcb
7526f118ba mu: some cosmetics / minor cleanup 2016-10-26 22:36:40 +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
cdb1af046f * fix the mu_util_fputs_encoded/bsd heisenbug
it seems g_locale_from_utf8 behaves a bit differently on bsd/macosx,
  causing a segfault (but when run under gdb!). this code path was hit
  for messages with encoding problems in non-utf8 locales
2013-09-07 18:39:00 +03:00
djcb
c30ffeea72 * small cleanups (macos) 2013-08-25 20:05:57 +03:00
djcb
f89447e65c * mu_util_fputs_encoded: updated; perhaps helps with freebsd crash? 2013-08-14 21:59:31 +03:00
djcb
b7324d5af6 * cleanup: drop gmime-2.4 support 2013-07-21 14:44:44 +03:00
djcb
fa514435ea * merge branch 'master' of github.com:djcb/mu 2013-06-13 23:56:35 +03:00
djcb
c50c0695e4 * fix CSV quoting (fields with commas) 2013-05-27 04:23:49 -07:00
djcb
855e81db99 * update copyright years 2013-03-30 11:32:07 +02:00
djcb
1a14d19cad * mu-util: add mu_util_get_hash (refactored) 2012-12-25 16:45:05 +02:00
djcb
89c78d6767 * fix typo 2012-11-08 22:20:31 +02:00
djcb
e5425081cc * remove hard dependency on wordexp.h (OpenBSD does not have it) 2012-11-08 22:19:28 +02:00
djcb
11ecc65109 * update (C) years 2012-10-24 11:42:57 +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
70824bf978 * mu_util_read_password: fix mem mgmt 2012-09-14 12:16:53 +03:00
djcb
52bc720258 * lib/mu-util: add mu_util_read_password 2012-09-13 22:56:08 +03:00
djcb
cf2b81c009 * lib: centralize MAX_PATH stuff 2012-08-03 18:43:59 +03:00
djcb
e5448adbb8 * robustness/cleanup fixes:
- mu-util.c: don't raise errors when fputs failes (this would spam us when a
    pipe broke)
  - mu-cmd-server.c: handle SIGPIPE, ignore empty command lines
2012-06-26 13:11:50 +03:00
djcb
ecf18e9ac9 * mu-util.c: return FALSE in all case for mu_util_g_set_error 2012-05-22 16:49:57 +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