Dirk-Jan C. Binnema
7e2b3ff7a0
* mu_msg_iter_xapian_get_field_numeric: explicitly cast to gint64
...
this might resolve some build problems
2010-07-26 00:29:10 +03:00
Dirk-Jan C. Binnema
d621a8a502
* explicitly #include <signal.h> in mu-cmd-index.c
2010-07-25 19:13:56 +03:00
Dirk-Jan C. Binnema
38f5c8abeb
* make requirement for GIO optional (issue #22 )
2010-07-24 20:28:39 +03:00
Dirk-Jan C. Binnema
7895a1376b
* tests/test-mu-query: add 'count_matches' function; add test_mu_query_03
...
(currently failing)
2010-03-02 17:27:08 +02:00
Dirk-Jan C. Binnema
abfde3a5b9
* mu-cmd-find.c: update help text (it's --rebuild, not --empty)
2010-02-20 14:36:43 +02:00
Dirk-Jan C. Binnema
451be4394d
* mu-maildir: start maildirs (for the maildir: search param) with a slash
...
(well, G_DIR_SEPARATOR); thus, we can find mails in the 'root' maildir as
well. When indexing under (say) ~/Maildir, a mail in cur will have maildir
'/', and in foo/cur will have '/foo'
2010-02-15 20:24:00 +02:00
Dirk-Jan C. Binnema
01d6fbb257
* mu-cmd-index: restart 'processed' at 0 when cleaning up after indexing
2010-02-13 18:45:44 +02:00
Dirk-Jan C. Binnema
2846a40025
* mu-cmd-index.c: clear the stats before cleanup only when run as a separate
...
command
2010-02-13 14:08:45 +02:00
Dirk-Jan C. Binnema
01db6dcf45
* cosmetic
2010-02-11 20:20:50 +02:00
Dirk-Jan C. Binnema
302f7ea9d5
* mu-store-xapian.cc: remove obsolete comment
2010-02-11 20:20:34 +02:00
Dirk-Jan C. Binnema
5228495e56
* mu-msg-gmime.c: remove obsolete TODO
2010-02-11 20:20:03 +02:00
Dirk-Jan C. Binnema
d7bcf3df36
* mu-config.c: remove extra space
2010-02-11 20:19:43 +02:00
Dirk-Jan C. Binnema
2637989d93
* mu-cmd.c: small update in help text
2010-02-11 20:19:20 +02:00
Dirk-Jan C. Binnema
6f64f013be
* test-mu-query.c: updated
2010-02-09 22:11:15 +02:00
Dirk-Jan C. Binnema
5414c396af
* mu-msg-fields,mu.1: update some field codes, documentation
2010-02-09 22:10:58 +02:00
Dirk-Jan C. Binnema
a4471e6bdd
* mu-maildir.c: small refactoring to satisfy 'make line33'
2010-02-09 21:53:12 +02:00
Dirk-Jan C. Binnema
c5dc61986a
* cosmetics
2010-02-08 23:17:47 +02:00
Dirk-Jan C. Binnema
9a4340406b
* mu-msg-gmime: fix leak when converting to utf8
2010-02-08 23:17:35 +02:00
Dirk-Jan C. Binnema
e01f37dc57
* tests/: update
2010-02-08 21:25:53 +02:00
Dirk-Jan C. Binnema
0dd39fcc57
* mu-query-xapian: minor update for name changes
2010-02-08 21:24:10 +02:00
Dirk-Jan C. Binnema
f520e41a62
* mu-store-xapian: more clearly separate index/term/value
2010-02-08 21:23:41 +02:00
Dirk-Jan C. Binnema
11ed5c7f96
* mu-cmd-find: update for the changes in mu-msg-gmime
2010-02-08 21:23:06 +02:00
Dirk-Jan C. Binnema
b19dabefba
* mu-cmd-index: update for --empty => --rebuild
2010-02-08 21:22:30 +02:00
Dirk-Jan C. Binnema
c141d9436c
* mu-config,mu-index: rename --empty -> --rebuild, small changes for maildir stuff
2010-02-08 21:21:30 +02:00
Dirk-Jan C. Binnema
8f825b4816
* mu-msg-field: add support for maildir field; more clear separate
...
index/term/value for xapian
2010-02-08 21:20:11 +02:00
Dirk-Jan C. Binnema
b77004774c
* mu-log: remove some crap from the to-screen logging
2010-02-08 21:19:17 +02:00
Dirk-Jan C. Binnema
b2c8f38c0c
* mu-maildir: feed the maildir name to message callback
...
(ie., when the full path is ~/Maildir/foo/bar/cur/msg, the maildir is foo/bar)
2010-02-08 21:18:46 +02:00
Dirk-Jan C. Binnema
0dfd2060e3
* mu-msg-gmime: add support for the Maildir field
2010-02-08 21:17:11 +02:00
Dirk-Jan C. Binnema
5190a8bc58
* fix the wrong dirs that broke test cases
2010-02-05 18:54:27 +02:00
Dirk-Jan C. Binnema
8448473732
* enforce that maildir paths are absolute
2010-02-04 23:00:34 +02:00
Dirk-Jan C. Binnema
b416714622
* tests/: update test cases a bit
2010-02-04 22:48:13 +02:00
Dirk-Jan C. Binnema
dbcc57baa5
* mu-msg-iter-xapian: cosmetics
2010-02-04 22:47:16 +02:00
Dirk-Jan C. Binnema
d5e8aefc78
* mu-msg-gmime: update comments a bit
2010-02-04 22:46:54 +02:00
Dirk-Jan C. Binnema
3b1fbb79e9
* mu-log: refactor a bit to stay within cc-limits
2010-02-04 22:44:42 +02:00
Dirk-Jan C. Binnema
9206894e02
* implement 'mu view'
2010-02-04 22:44:05 +02: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
a2d1692dda
* implement automatic log file cleanup, document it
2010-02-03 21:01:08 +02:00
Dirk-Jan C. Binnema
7af1775c3d
* mu-config: add some missing struct members in init
2010-02-02 21:54:00 +02:00
Dirk-Jan C. Binnema
5b6101ef15
* mu-cmd-index.c: don't require a writeable Maildir
2010-02-02 21:53:28 +02:00
Dirk-Jan C. Binnema
529c5b84db
* src/Makefile.am: add AM_CFLAGS, AM_CXXFLAGS with strict warnings
...
(but no -Werror as we don't want to break builds if some compiler other than
mine barfs)
2010-02-02 21:52:59 +02:00
Dirk-Jan C. Binnema
a4ca5304a6
* refactor convert_to_utf8 (GMimePart *part, char *buffer)
2010-02-02 21:50:35 +02:00
Dirk-Jan C. Binnema
ea2802f1ce
* update some test files / cleanup Makefile.am to work with distcheck
...
(mainly fix the false assumptions on the build dirs)
2010-02-02 21:48:41 +02:00
Dirk-Jan C. Binnema
3b253adf43
* test-mu-common.[ch]: centralize some common test code
2010-02-02 21:47:19 +02:00
Dirk-Jan C. Binnema
14c61ba502
* rename msg files to use the ! rather than : separator, which broke distcheck
2010-02-02 21:46:40 +02:00
Dirk-Jan C. Binnema
1d75aea016
* mu-find: some fixes for the nothing-matches case
2010-02-02 08:46:55 +02:00
Dirk-Jan C. Binnema
933245928f
* mu-index.c, mu-maildir.c, test-mu-query.c: some refactoring to get max line
...
len <= 35
2010-02-02 08:46:01 +02:00
Dirk-Jan C. Binnema
fe3aa7772a
* mu_msg_gmime: refactor part_to_string; set function line number check to < 40
2010-01-31 23:55:22 +02:00
Dirk-Jan C. Binnema
22e9d22c17
* <many>: refactor querying a bit
2010-01-31 20:36:56 +02:00
Dirk-Jan C. Binnema
a5ea077357
* test-mu-query.c: add some test cases
2010-01-31 17:37:14 +02:00
Dirk-Jan C. Binnema
3c74b9aa6e
* mu-query-xapian: fix silly typo (s/ANO/AND/) that screwed up some searches
2010-01-31 14:17:23 +02:00
Dirk-Jan C. Binnema
e017e658de
* mu-util-xapian.cc: don't log db version for each query
2010-01-31 14:16:25 +02:00
Dirk-Jan C. Binnema
db55e8cf7d
* mu-cmd.c: move cmd_view stub to mu_cmd_find
2010-01-31 14:15:43 +02:00
Dirk-Jan C. Binnema
9725f41258
* mu-cmd-find: add some documentation, mu_cmd_view stub
2010-01-31 14:14:56 +02:00
Dirk-Jan C. Binnema
4eb9f8049b
* tests: add some test cases for querying. add dummy.cc to enforce C++ linking
2010-01-31 14:14:19 +02:00
Dirk-Jan C. Binnema
c4bac8306e
* mu-cmd-index: add documentation, don't print \n in quiet mode
2010-01-31 13:34:04 +02:00
Dirk-Jan C. Binnema
ee946a7f70
* add missing glib/gstdio.h include
2010-01-31 12:15:00 +02:00
Dirk-Jan C. Binnema
12dc28e3e9
* update database up-to-date and/or empty checks
2010-01-31 12:14:25 +02:00
Dirk-Jan C. Binnema
143f8c007d
* cosmetics
2010-01-31 12:13:46 +02:00
Dirk-Jan C. Binnema
8ed3eb9276
* mu-index.[ch]: minor changes
2010-01-31 12:13:06 +02:00
Dirk-Jan C. Binnema
8cbd6384a7
* mu-log: fix C++ linking
2010-01-31 12:12:41 +02:00
Dirk-Jan C. Binnema
d339a4b4bb
* refactoring: split off 'mu find' and 'mu index' stuff from mu-cmd into
...
separate files
2010-01-31 12:12:04 +02:00
Dirk-Jan C. Binnema
a2fd42c8a2
* mu.c => mu.cc: force c++-linking
2010-01-31 12:10:21 +02:00
Dirk-Jan C. Binnema
5b0a9c04ff
* src/tests/Makefile.am: add the test mails to EXTRA_DIST
2010-01-29 08:20:36 +02:00
Dirk-Jan C. Binnema
cf0ba86d17
* WIP: mu view
2010-01-29 00:35:05 +02:00
Dirk-Jan C. Binnema
c5dc8f044d
* add many unit tests
2010-01-28 22:21:57 +02:00
Dirk-Jan C. Binnema
a411a9964b
* add unit tests for mu_maildir_mkdir
2010-01-27 08:15:08 +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
afcd800a2e
* set up (unit) test framework using gtester
2010-01-25 10:24:33 +02:00
Dirk-Jan C. Binnema
92202ac6eb
* split mu bulding in libmu noinst lib and mu.c.
2010-01-25 09:43:53 +02:00
Dirk-Jan C. Binnema
fb7e358912
* implement signal handler for mu index, and document it
2010-01-25 09:28:08 +02:00
Dirk-Jan C. Binnema
9ba4b29bba
* mu-maildir: some refactoring, fix clearlinks issue
2010-01-24 14:55:22 +02:00
Dirk-Jan C. Binnema
f752584002
* mu-cmd: enable the 'help' and 'cleanup' commands
2010-01-24 13:15:43 +02:00
Dirk-Jan C. Binnema
0b3de03d9d
* mu-query-xapian: support batchsize == 0; use the db->get_doccount in that case
2010-01-24 13:15:04 +02:00
Dirk-Jan C. Binnema
cf6c5d0a84
* cosmetics
2010-01-24 01:37:26 +02:00
Dirk-Jan C. Binnema
c3b90e6364
* implement & use the new batch stuff, small fixes
2010-01-24 00:52:15 +02:00
Dirk-Jan C. Binnema
0a90c0e350
* mu-query-xapian.{cc,h}: add batch param, add documentation, cosmetics
2010-01-24 00:51:17 +02:00
Dirk-Jan C. Binnema
74b2cc5e69
* mu-util-xapian: do extra logging, small updates
2010-01-24 00:50:23 +02:00
Dirk-Jan C. Binnema
9967751b1d
* rename MuMsgXapian => MuMsgIterXapian
2010-01-23 23:34:27 +02:00
Dirk-Jan C. Binnema
a4720547de
* use -n for --nocleanup
2010-01-23 22:02:26 +02:00
Dirk-Jan C. Binnema
a4bdb311ec
* introduce --empty and --autoupgrade, and document them
2010-01-23 21:57:57 +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
9e5e63d1ae
* cosmetic
2010-01-23 14:13:04 +02:00
Dirk-Jan C. Binnema
873f1a126a
* mu-store-xapian: restore the behavior of storing both values and terms
...
this will be removed again soon, but the query parser will need some changes
before that works. see the note in the src
2010-01-23 14:12:45 +02:00
Dirk-Jan C. Binnema
366fe26fdb
* .*_transaction_if => *._trx_if (rename)
2010-01-23 13:41:42 +02:00
Dirk-Jan C. Binnema
f5d785cad2
* mu-log: cosmetic
2010-01-23 12:30:09 +02:00
Dirk-Jan C. Binnema
f6befa53b3
* mu-cmd: some very minor cleanups
2010-01-23 12:29:57 +02:00
Dirk-Jan C. Binnema
3743fb2b39
* mu-store-xapian: don't use terms, only use values
2010-01-22 22:08:04 +02:00
Dirk-Jan C. Binnema
891f0ad3df
* mu-store-xapian: truncate overly long Xapian terms to so it doesn't throw
2010-01-22 19:18:23 +02:00
Dirk-Jan C. Binnema
03ff32d9c8
* cosmetic
2010-01-22 19:17:00 +02:00
Dirk-Jan C. Binnema
3a2fc9b7f6
* mu-msg-fields.c, mu.1: index the msg-id as well and document it
2010-01-22 19:16:47 +02:00
Dirk-Jan C. Binnema
16dbed6a11
* mu_msg_gmime_get_field_string: fix MU_MSG_FIELD_ID_MSGID
2010-01-22 19:15:56 +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
2ef4ceb7ed
* move config handling to mu-config, add --mode parameter for mkdir
2010-01-21 20:05:19 +02:00
Dirk-Jan C. Binnema
fc64926c63
* mu_maildir_mkdir: add logging
2010-01-21 20:04:30 +02:00
Dirk-Jan C. Binnema
3407e6db3b
* mu-cmd: fix wrong help text
2010-01-17 14:03:01 +02:00
Dirk-Jan C. Binnema
fdb69a85a4
* cosmetics
2010-01-16 15:28:17 +02:00
Dirk-Jan C. Binnema
90c9b61d37
* update configuration files
2010-01-16 15:27:41 +02:00
Dirk-Jan C. Binnema
6f48dbed79
* configure.ac, mu-maildir.c: some compatibility updates
2010-01-16 11:32:07 +02:00
Dirk-Jan C. Binnema
5fd98d2e2e
*.cc: remove _-prefixed functions (violates ISO-C)
2010-01-15 22:15:09 +02:00
Dirk-Jan C. Binnema
da1e9a3841
* *.c: rename _prefixed function into non-prefixed ones (violates ISO)
2010-01-15 22:11:51 +02:00
Dirk-Jan C. Binnema
223e3f95b0
* mu-maildir: tentative support for filesystems without d_type in dirent
...
(untested)
2010-01-15 08:45:39 +02:00
Dirk-Jan C. Binnema
79ef6fe87a
* mu_query_combine: refactor, reduce complexity
2010-01-13 22:35:16 +02:00
Dirk-Jan C. Binnema
5fb08c66d1
* cosmetic
2010-01-11 20:47:01 +02:00
Dirk-Jan C. Binnema
191630b302
* mu-index: add some comment about the new up-to-data check
2010-01-11 20:46:48 +02:00
Dirk-Jan C. Binnema
044db7ea80
* mu-store/index: better up-to-date check: see if message is in db already
...
mu-store-xapian: add mu_store_contains_message;
mu_index: update the check
we cannot just rely on the timestamp, because messages may be moved from
elsewhere, e.g. from 'new' to 'cur'
2010-01-11 20:46:14 +02:00
Dirk-Jan C. Binnema
95bb6f9756
* mu-cmd: fix error in links while-loop, some cleanups
2010-01-10 13:02:13 +02:00
Dirk-Jan C. Binnema
7b01eea5e7
* mu-cmd.c: improve error handling (when mu_index_new fails)
2010-01-10 12:18:15 +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
460a4ecf65
* mu-cmd.c: query=>find and de-activate the cleanup command for now
2010-01-08 20:55:45 +02:00
Dirk-Jan C. Binnema
c2ff9b3f25
* mu-config: make cleanup the default, and nocleanup an option; + some cosmetics
2010-01-08 20:54:55 +02:00
Dirk-Jan C. Binnema
5a1be9fa01
* mu-index: cosmetics
2010-01-08 20:54:01 +02:00
Dirk-Jan C. Binnema
5e7a920336
* mu-log: cosmetics
2010-01-08 20:53:40 +02:00
Dirk-Jan C. Binnema
b502353017
* mu-maildir.[ch]: cosmetics
2010-01-08 20:53:21 +02:00
Dirk-Jan C. Binnema
4b578ad52b
* mu-msg-fields: document public functions
2010-01-08 20:52:50 +02:00
Dirk-Jan C. Binnema
abc3c247ee
* mu-msg-str: use G_GNUC_WARN_UNUSED_RESULT where it makes sense
2010-01-08 20:52:11 +02:00
Dirk-Jan C. Binnema
d95193d718
* mu-msg-xapian.cc: plug some exception leaks; bit of cleanup
2010-01-08 20:51:25 +02:00
Dirk-Jan C. Binnema
3252ba6d5d
* mu-msg-xapian.h: document the public functions
2010-01-08 20:50:51 +02:00
Dirk-Jan C. Binnema
a87e3cadd5
* mu-query-xapian.cc: plug a few exception-catching wholes
2010-01-08 20:49:55 +02:00
Dirk-Jan C. Binnema
287a17f225
* mu-query-xapain.h: use G_GNUC_WARN_UNUSED_RESULT in function that return results that must be freed
2010-01-08 20:49:16 +02:00
Dirk-Jan C. Binnema
3b18fa9682
* mu-store-xapian: catch exceptions in dtor
2010-01-08 20:47:13 +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
bf6ce56082
* cosmetics
2010-01-08 20:45:28 +02:00
Dirk-Jan C. Binnema
653f730e3b
* mu-cmd: print, return error when no matches are found; small cleanups
2010-01-08 08:57:19 +02:00
Dirk-Jan C. Binnema
b5292f8cad
* mu-index: cosmetic
2010-01-07 21:52:44 +02:00
Dirk-Jan C. Binnema
eeae067249
* mu-msg-gmime: bit of refactoring, to satisfy cc10
2010-01-07 21:52:31 +02:00
Dirk-Jan C. Binnema
c84e9935ec
* update copyright info; add cc10 cyclomatic complexity check
2010-01-07 21:52:10 +02:00
Dirk-Jan C. Binnema
6dc22919af
* mu-cmd: logging, output improvements
2010-01-07 09:01:52 +02:00
Dirk-Jan C. Binnema
b267cb95e0
* mu-index: cosmetics
2010-01-07 09:01:24 +02:00
Dirk-Jan C. Binnema
979887a36e
* mu-maildir: use ctime instead of mtime, some cosmetics
2010-01-07 09:00:48 +02:00
Dirk-Jan C. Binnema
7c6f09e6fc
* mu-msg-gmime: logging improvements
2010-01-07 09:00:08 +02:00
Dirk-Jan C. Binnema
e47606c340
* cosmetics
2010-01-07 08:59:48 +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
165ba1f440
* mu-config.c: better command line options for some options
2010-01-06 21:43:28 +02:00
Dirk-Jan C. Binnema
1f7b7ba0a1
* mu-log.[ch]: still log to the log file with --quiet
2010-01-06 21:42:59 +02:00
Dirk-Jan C. Binnema
fdae866ccd
* mu-msg-field.(ch): some cosmetics
2010-01-06 21:41:58 +02:00
Dirk-Jan C. Binnema
9b96a42c81
* mu.c: cleanups, do 'quiet' a bit differently
2010-01-06 21:41:23 +02:00
Dirk-Jan C. Binnema
155a73bf41
* mu-query-xapian: use the new macros, cleanups
2010-01-06 01:30:45 +02:00
Dirk-Jan C. Binnema
302a97b04c
* mu-query-xapian: logging fixes
2010-01-06 01:28:00 +02:00
Dirk-Jan C. Binnema
e56743d9c5
* mu-msg-gmime: refactoring, cleanups
2010-01-06 01:27:38 +02:00
Dirk-Jan C. Binnema
f28cb97a5d
* mu-msg-flags: better logging
2010-01-06 01:27:03 +02:00
Dirk-Jan C. Binnema
498c6418df
* mu-maildir: better logging
2010-01-06 01:26:41 +02:00
Dirk-Jan C. Binnema
5f27884689
* mu-log: handle G_LOG_LEVEL_MESSAGE better
2010-01-06 01:26:18 +02:00
Dirk-Jan C. Binnema
6f163a755e
* mu-index.c: cleanups, make _cleanup work
2010-01-06 01:25:19 +02:00
Dirk-Jan C. Binnema
8262f2c4d8
* mu-config.[ch]: better option checking, default setting, fix some small leaks
2010-01-06 01:24:37 +02:00
Dirk-Jan C. Binnema
d0592a2aa9
* mu-cmd: better parameter checks, improve output
2010-01-06 01:23:00 +02:00
Dirk-Jan C. Binnema
b6ba6176a4
* mu_store_xapian.{cc,h}: use new macros, cleanups. add mu_store_xapian_flush
2010-01-06 01:20:30 +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
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
39192b7a42
* mu-query-xapian: fix typo (inverted conditional)
2010-01-05 09:34:30 +02:00