Dirk-Jan C. Binnema
628d154a2c
* minor / cosmetic changes
2011-09-12 20:38:40 +03:00
Dirk-Jan C. Binnema
8fff492414
* mu-util: add some new exception handler macros
2011-09-03 10:50:15 +03:00
Dirk-Jan C. Binnema
846d2da27f
* mu-threader, mu-util: cleanups
2011-08-30 22:02:49 +03:00
Dirk-Jan C. Binnema
fbc786f2fc
* minor changes, trailing whitespace fixes
2011-08-29 23:38:55 +03:00
Dirk-Jan C. Binnema
ade551deb9
* mu-maildir, mu-util: error when source, target of move are the same
2011-08-16 00:08:35 +03:00
Dirk-Jan C. Binnema
e55eb4ed25
* MuResult/MuExitCode => MuError
2011-08-11 20:20:22 +03:00
Dirk-Jan C. Binnema
b1d0de2cab
* minor
2011-08-11 08:22:24 +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
bdf1237c34
* mu-mv: optionally, let it update the database (--updatedb) and print the
...
target file on stdout (--printtarget)
2011-08-02 21:27:32 +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
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
271ec23b4e
* mu-util.h, mu-util-db.cc: make mu_util_xapian_clear also clear the contacts-cache
2011-05-24 21:36:55 +03:00
Dirk-Jan C. Binnema
34683157d1
* minor updates / cleanups
2011-05-22 17:39:10 +03:00
Dirk-Jan C. Binnema
abf9c632e3
* cleanup some header files
2011-05-22 14:48:31 +03:00
Dirk-Jan C. Binnema
57498fb1a2
* mu-msg-iter-priv.cc: get rid of this with some void** casting tricks...
2011-05-18 23:51:52 +03:00
Dirk-Jan C. Binnema
7498bc3841
* WIP: hook up mu-msg-db with mu-msg (CTOR)
2011-05-15 11:06:55 +03:00
Dirk-Jan C. Binnema
91cbdd6b71
* add mu_util_xapian_is_locked and use it
2011-01-14 07:47:19 +02:00
Dirk-Jan C. Binnema
d1bf8b3c73
* improve checks for database version
2011-01-12 23:13:03 +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
974f6556fc
* mu-util: make warning a bit more user-friendly
2011-01-06 16:22:11 +02:00
Dirk-Jan C. Binnema
aa22e5e90d
* some further cleanups
2011-01-05 20:38:33 +02:00
Dirk-Jan C. Binnema
fade4172fe
* many changes to the config system
2011-01-04 23:19:03 +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
0131b9bd5f
* mu-util.h: fix -pedantic warning (variadic macro)
2010-12-07 23:19:45 +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
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