Commit Graph

25 Commits

Author SHA1 Message Date
Dirk-Jan C. Binnema 61bc73f071 * <many>: use some gcc attributes (if applicable) for optimization 2010-11-30 08:32:59 +02:00
Dirk-Jan C. Binnema e64e24aa61 * create mu-error.h, update some functions to use GError for errors 2010-11-24 20:04:20 +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 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
djcb b50a3dc245 * rename MuMsgIterXapian => MuMsgIter 2010-08-25 21:29:53 +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 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 2bdfb40faf * add unit test for mu_util_check_dir 2010-01-25 22:21:11 +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 501ce008d3 * <many>: (WIP) use ~/mu/xapian as the database with an embedded version tag
- add checks in the code to make sure the database is up to date,
    if not, warn the user.
2010-01-23 20:50:06 +02:00
Dirk-Jan C. Binnema 6efcfb4616 * mu-util.h: make exceptions create criticals (just like g_return_if_fail & friends) 2010-01-10 12:11:38 +02:00
Dirk-Jan C. Binnema affe20551a * mu-util.h: don't include config.h 2010-01-08 20:46:04 +02:00
Dirk-Jan C. Binnema 3e81be3c1e * mu-util: improve xapian exception error logging 2010-01-07 08:42:01 +02:00
Dirk-Jan C. Binnema 0bb240cbb0 * mu-util.h: add Xapian exception macros, add MU_WRITE_LOG macro 2010-01-06 01:19:18 +02:00
Dirk-Jan C. Binnema 4bc30783b1 * mu-(query|store)-xapian.cc, mu-util.h: define/use macro for catch blocks to
declutter my code
2010-01-05 08:32:23 +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 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