Commit Graph

54 Commits

Author SHA1 Message Date
djcb daaec407eb * fix compiler warning for newest gcc/g++ 2012-03-13 23:06:17 +02:00
djcb dd78faf415 * mu_util_play: accept paths with spaces etc. as well 2012-03-08 00:12:06 +02:00
Dirk-Jan C. Binnema 6761f0e5d3 * possible fix for some encoding problem (mu_util_fputs_encoded) + cosmetics 2012-02-29 20:51:29 +02:00
djcb 688d571715 * don't insist on using xdg-open; use "open" on MacOS or what MU_PLAY_PROGRAM sets 2012-01-23 00:11:23 +02:00
djcb 1da684d254 * disable g_debug in functions that may be called for logging is initialized 2012-01-19 19:24:46 +02:00
djcb c52dfccd7c * cosmetics 2011-11-27 16:24:55 +02:00
djcb c9f72ba3c7 * fix searching for strings with spaces (e.g. maildir:"sent items") 2011-11-24 00:12:29 +02:00
Dirk-Jan C. Binnema 846d2da27f * mu-threader, mu-util: cleanups 2011-08-30 22:02:49 +03:00
Dirk-Jan C. Binnema 978c94a2ba * mu-util: forward-port the MacOS/g_slice workaround 2011-08-29 23:40:34 +03:00
Dirk-Jan C. Binnema 785a09ef76 * make mu_util_create_dir_maybe potentially not warn (useful when the logging
system is not initialized yet)
2011-08-09 07:53:50 +03:00
Dirk-Jan C. Binnema fe245880fa * mu-util: cosmetics 2011-07-21 00:35:14 +03:00
Dirk-Jan C. Binnema 7019bd9b86 * mu-util.[ch]: add mu_util_locale_is_utf8, handle invalid utf8 string more gracefully 2011-06-01 21:52:58 +03:00
Dirk-Jan C. Binnema 8b7d0f9b06 * mu-util.c: only convert if the locale is not already in UTF8 2011-05-31 23:23:50 +03:00
Dirk-Jan C. Binnema 096c92e5c2 * add mu_util_print_encoded, mu_util_printerr_encoded, mu_util_fputs_encoded,
for printing where the input (in utf8) is converted to the current locale
  before  printing (WIP)
2011-05-31 23:17:09 +03:00
Dirk-Jan C. Binnema fe32cf84b1 * mu-str.[ch], mu-util.[ch]: better, simpler ANSI colors through some #defines 2011-05-26 23:32:23 +03:00
Dirk-Jan C. Binnema bc8c1a0289 * add mu_util_color_print for printing color (ANSI) to console 2011-05-25 21:59:34 +03:00
Dirk-Jan C. Binnema 3d84650f42 * mu-util.c: don't write to stderr when opening fails in mu_util_create_writeable_fd 2011-05-21 14:11:23 +03:00
Dirk-Jan C. Binnema 8d3fe85652 * mu-util.c: Fix #39: use MU_WRITE_LOG instead of the (now something different)
MU_LOG_FILE. Change suggested by patch, thanks!
2011-05-18 00:37:36 +03:00
Dirk-Jan C. Binnema 8f9bd404cf * fix infinite loop in mu-cmd-index (fixes issue #36) + some cosmetics 2011-04-24 16:03:40 +03:00
Dirk-Jan C. Binnema 8352f6a1bf * mu-util.c: use /etc/passwd (and likewise) to determine homedir in preference
over $HOME
2011-01-31 09:15:42 +02:00
Dirk-Jan C. Binnema 5d6fe733a0 * add mu_util_is_local_file, improve mu_util_play:
add some checks whether the file is 'local' or on some remote place (http://
 etc.), and explicitly mention what is acceptible in mu_util_play; for
 security reasons sometimes local, and sometimes remote
2011-01-11 23:21:24 +02:00
Dirk-Jan C. Binnema a778d233c0 * add mode_t arg to mu_util_create_dir_maybe, add mu_util_cache_dir 2011-01-11 00:44:03 +02:00
Dirk-Jan C. Binnema 65e4f8b896 * add mu_util_create_tmpdir 2011-01-09 18:55:54 +02:00
Dirk-Jan C. Binnema 623ec34ab8 * improvements in attachment / mime-part handling:
- add mu_util_play for 'playing' (opening) attachments; depends on xdg-open
  - stricter check for mu extract cmdline params
  - don't allow overwriting unless --overwrite was specified
  - mu extract now has a --play option to 'play' (open) attachments
  - added unit test to verify --overwrite
  - some cleanups in attachment/mime-part handling
2011-01-09 14:55:25 +02:00
Dirk-Jan C. Binnema 49077bf7d1 * mu-runtime, mu-util: improve check for muhome dir 2011-01-02 18:45:16 +02:00
Dirk-Jan C. Binnema a315e15081 * cosmetics 2010-12-12 18:32:37 +02:00
Dirk-Jan C. Binnema d14727c7a8 * dont't require direntry->d_type; this should help the Solaris build.
also, some cleanups
2010-12-11 13:52:03 +02:00
Dirk-Jan C. Binnema 0b87be5f18 * fix mu_util_dir_expand for non-existant dirs, add unit test 2010-12-04 19:14:31 +02:00
Dirk-Jan C. Binnema 6a3decdc7c * mu_util_dir_expand fix issue #30: wrong use of realpath(3) 2010-12-04 19:08:23 +02:00
Dirk-Jan C. Binnema ba2918ca41 * unify error printing a bit (starting with lowercase) 2010-11-30 22:20:27 +02:00
Dirk-Jan C. Binnema 141b7298e9 * add 'mu_runtime' for initialization, keeping global state during runtime. update many. 2010-11-14 13:55:04 +02:00
Dirk-Jan C. Binnema 3794182e05 * add basic implementation for bookmark support.
basically, add a file named ~/.mu/bookmarks which looks something like
  ----
  [mu]
  testarch=subject:test maildir:/archive
  inbox=maildir:/inbox
  ----

  now, one can do a query, e.g.

    mu find -b testarch

  which is equivalend to

    mu find subject:test maildir:/archive

 if both a bookmark and a 'normal' search expression are specified,
 the will be concatenated.

 bookmarks starting with mu_ are reserved for mu itself.
2010-11-13 14:16:38 +02:00
Dirk-Jan C. Binnema 3b87a0f9e6 * add mu_util_guess_mu_homedir and mu_util_guess_xapian_dir and use them 2010-11-02 21:12:18 +02:00
Dirk-Jan C. Binnema 89b65df13b * small logging cleanups, don't g_debug before we initialized logging 2010-10-09 12:44:48 +03:00
Dirk-Jan C. Binnema 7de56f9399 * clean-up mu_util_dir_expand, add unit test 2010-10-09 11:56:55 +03:00
Dirk-Jan C. Binnema fb1651e184 * <many> fix small conversion errors (-Wconversion) 2010-09-26 17:29:54 +03:00
Dirk-Jan C. Binnema 99c0d620d4 * mu-util.[ch]: use realpath to resolve dirs, some cosmetics 2010-09-23 00:03:04 +03:00
Dirk-Jan C. Binnema 3a4bfe1362 * move some system-initialization to mu_util_init_system;
set G_SLICE env far to always-malloc on FreeBSD, as g_slice does not work
  correctly there.
2010-09-09 00:12:06 +03:00
Dirk-Jan C. Binnema 15ad934d81 * update attachment-extraction (ie., 'mu extract'); still WIP, but basics are working 2010-08-29 22:13:06 +03:00
Dirk-Jan C. Binnema f1bbb3fb96 * WIP: more attachment handling changes 2010-08-24 21:10:00 +03:00
djcb 43b1c0fcf1 * WIP: rough implementation of attachment extraction 2010-08-22 22:50:19 +03:00
Dirk-Jan C. Binnema 3787392c88 * candidate fix for the MacOS wordexp issue 2010-07-30 20:56:50 +03:00
Dirk-Jan C. Binnema f2cc543baf * fix error handling of shell expansion (candidate fix for issue #23) 2010-07-26 12:12:43 +03:00
Dirk-Jan C. Binnema fa08d66380 * remove mu_query_xapian_combine; let Xapian handle it. add
mu_util_str_from_strv for combining strings
2010-02-03 21:06:31 +02:00
Dirk-Jan C. Binnema 3b8f908fa6 * tests: add tests for mu_util_dir_expand and mu_util_guess_maildir 2010-01-25 13:27:02 +02:00
Dirk-Jan C. Binnema 8b89008c79 * fix logic inversion in mu_util_guess_maildir (debian #566183, issue #14) 2010-01-22 07:14:25 +02:00
Dirk-Jan C. Binnema 3b1b4926bf * mu-util.[ch]: add mu_util_check_dir (to check for
existence/readability/writability of dirs
2010-01-06 01:18:24 +02:00
Dirk-Jan C. Binnema 16c305fcc3 * add mu_util_create_dir_maybe
to create a dir if it does not exist yet; if it does exist, make sure it's a
  read-writeable dir
2010-01-04 20:15:49 +02:00
Dirk-Jan C. Binnema 4890ad0216 * update copyright year => 2010 2010-01-01 15:56:45 +02:00
Dirk-Jan C. Binnema 1cff4534b8 * mu-util: remove unneeded argv->gslist conversion funcs 2009-12-11 22:08:49 +02:00