Commit Graph

31 Commits

Author SHA1 Message Date
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
Dirk-Jan C. Binnema e3a834da74 * mu-util.c: fix _is_readable_dir 2009-12-09 20:01:04 +02:00
Dirk-Jan C. Binnema b48e44f7c9 * mu-config,mu-util.[ch]: try MAILDIR, they ~/Maildir as a guess for the maildir 2009-12-09 19:53:30 +02:00
Dirk-Jan C. Binnema 1b30f4c8e5 * mu-util: use wordexp for shell-like expansion 2009-11-30 00:03:03 +02:00
Dirk-Jan C. Binnema 2b0aca1bf7 * initial import of mu - the next generation 2009-11-25 22:55:06 +02:00