Dirk-Jan C. Binnema
d2fa1c3596
* mu-str.c: fix out-of-bounds issue with mu_str_ascii_xapian_escape_in_place
2011-05-24 23:15:20 +03:00
Dirk-Jan C. Binnema
167b5b1148
* mu-cmd-index.c: fix progress output (fflush)
2011-05-24 22:41:53 +03:00
Dirk-Jan C. Binnema
0a2f4783af
* mu-maildir: add emacs indentation header
2011-05-24 22:40:20 +03:00
Dirk-Jan C. Binnema
22dc00358e
* mu-log.c: cleanup, don't use now-missing var
2011-05-24 22:39:28 +03:00
Dirk-Jan C. Binnema
b6291e1522
* mu-cmd-find, mu-cmd-cfind: make 'no matches found' uniform
2011-05-24 21:43:44 +03:00
Dirk-Jan C. Binnema
93522893bf
* mu-contacts: use encoded email address as group in gkeyfile (which valid as a
...
groupname), add real email as email= value; use g_keyfile_(get|set)_value
instead of string, so there is no utf-8 problems, just the raw data we got
as address
This should all allow for any kind of email address, even invalid
ones. switch order of name / address in mu_contacts_add
2011-05-24 21:41:52 +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
73752ca4a9
* cosmetics
2011-05-24 21:35:36 +03:00
Dirk-Jan C. Binnema
2c24a43211
* cosmetics
2011-05-23 08:16:09 +03:00
Dirk-Jan C. Binnema
34683157d1
* minor updates / cleanups
2011-05-22 17:39:10 +03:00
Dirk-Jan C. Binnema
744b363d8e
* mu-cmd-extract.c: free list of indices after use
2011-05-22 14:50:03 +03:00
Dirk-Jan C. Binnema
c6812eeb8c
* cosmetics
2011-05-22 14:49:11 +03:00
Dirk-Jan C. Binnema
abf9c632e3
* cleanup some header files
2011-05-22 14:48:31 +03:00
Dirk-Jan C. Binnema
9454d31d50
* mu-str.c: clean up a bit
2011-05-22 13:45:10 +03:00
Dirk-Jan C. Binnema
782e165f9f
* mu-contacts.c: cosmetics
2011-05-22 13:44:34 +03:00
Dirk-Jan C. Binnema
b711e2b051
* mu-config: reindent, remove --xquery
2011-05-22 13:44:12 +03:00
Dirk-Jan C. Binnema
48d52daf0b
* extract based on filename regexp and document it
2011-05-22 13:42:19 +03:00
Dirk-Jan C. Binnema
f7a39155c8
* completely remove '--xquery', re-indent mu-config.c
2011-05-22 10:40:12 +03:00
Dirk-Jan C. Binnema
e478eeee6d
* reindentation, fix mu_str_ascii_xapian_escape_in_place for '..'
2011-05-22 10:27:12 +03:00
Dirk-Jan C. Binnema
000805ae1f
* mu-query: special-case 'now' and 'today' when used as start of range
2011-05-22 10:26:20 +03:00
Dirk-Jan C. Binnema
c23d6b4dc7
* mu-config.h: fix indentation
2011-05-22 10:25:21 +03:00
Dirk-Jan C. Binnema
e7804314e2
* mu-cmd.c, test-mu-cmd.c: add attachment info to 'mu view' + unit test
2011-05-21 20:20:38 +03:00
Dirk-Jan C. Binnema
c84baa1201
* mu-query.cc, mu-store.cc: cosmetics
2011-05-21 20:20:07 +03:00
Dirk-Jan C. Binnema
6f74e1a42e
* mu-str.c: hack mu_str_ascii_xapian_escape_in_place a bit further to work
...
with filenames (with '.')
2011-05-21 16:08:47 +03:00
Dirk-Jan C. Binnema
ec1b870ca1
* test-mu-query.c: add unit test for searching filenames
2011-05-21 16:07:44 +03:00
Dirk-Jan C. Binnema
0ab861985a
* mu-query.c,mu-store.cc: add support for storing/search message file attachments
2011-05-21 16:06:52 +03:00
Dirk-Jan C. Binnema
e4c5340b37
* mu-msg-part.h: make it C++-friendly
2011-05-21 16:06:11 +03:00
Dirk-Jan C. Binnema
899d2633f3
* mu-msg-field.[ch]: add attach/a MsgFieldId
2011-05-21 16:05:44 +03:00
Dirk-Jan C. Binnema
e103a23c1f
* add test-mu-cmd changes, missed from previous commit
2011-05-21 14:13:56 +03:00
Dirk-Jan C. Binnema
d81c994426
* test-mu-cmd.c: add tests for extra-by-filename for mu-extract
2011-05-21 14:13:15 +03:00
Dirk-Jan C. Binnema
6355e78bc1
* implement saving mime-part by file-name, improve error handling
2011-05-21 14:12:01 +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
fa3ee3c058
* make size, date ranges work even if specified e->b. add unit tests.
2011-05-21 09:14:02 +03:00
Dirk-Jan C. Binnema
e607aed8de
* add unit tests for wildcards, size: and date:
2011-05-20 21:32:44 +03:00
Dirk-Jan C. Binnema
620b7e2cae
* mu-store: add some debug stuff
2011-05-20 21:32:16 +03:00
Dirk-Jan C. Binnema
84662ef5f5
* mu-msg-str: deal with size 0, and add add 'b' for byte in size: query params
2011-05-20 21:31:08 +03:00
Dirk-Jan C. Binnema
3aa034f0f2
* mu-msg-field, mu-query: refactor, make queries use boolean only for maildir,
...
path; this enables wildcard searching for other fields
2011-05-20 21:30:04 +03:00
Dirk-Jan C. Binnema
ce7c354f74
* make test-mu-cfind.c work on other days but 2011-05-19 too...
2011-05-20 08:20:11 +03:00
Dirk-Jan C. Binnema
55d6ad4c6f
Reverting "* fix test-mu-msg.c merge fallout"
...
* Makefile.am: it's mu-msg-doc.cc, not mu-msg-doc.c
2011-05-19 23:12:25 +03:00
Dirk-Jan C. Binnema
f6f5b457dd
* update test-mu-msg.c
2011-05-19 23:02:11 +03:00
Dirk-Jan C. Binnema
d99a814c93
* tests: fix up merge fallout
2011-05-19 22:56:55 +03:00
Dirk-Jan C. Binnema
5e887f8f39
* fix mu-msg.c merge fallout
2011-05-19 22:53:34 +03:00
Dirk-Jan C. Binnema
9d31d8aaca
* update test-cases
2011-05-19 22:49:13 +03:00
Dirk-Jan C. Binnema
603c6be7df
* mu-msg, mu-msg-file: fix up mu_msg_get_header
2011-05-19 22:25:27 +03:00
Dirk-Jan C. Binnema
68294e4d5c
* tests: add unit-tests for 'mu cfind'; fix up merge
2011-05-19 22:24:12 +03:00
Dirk-Jan C. Binnema
f6ff982e92
* tests: add unit-tests for 'mu cfind'; fix up merge
2011-05-19 20:56:29 +03:00
Dirk-Jan C. Binnema
21cbf42d27
* fix cc10 check
2011-05-19 20:50:16 +03:00
Dirk-Jan C. Binnema
49858a6fc1
* fix line33 check
2011-05-19 20:22:55 +03:00
Dirk-Jan C. Binnema
228af3edee
* mu-msg.[ch], mu-msg-file.[ch]: update indentation
2011-05-19 19:57:26 +03:00
Dirk-Jan C. Binnema
51fb5fe8e9
* tests: add unit-tests for 'mu cfind'
2011-05-19 19:55:50 +03:00
Dirk-Jan C. Binnema
53a2a5c3ab
* cosmetics, re-indentation
2011-05-19 07:32:09 +03:00
Dirk-Jan C. Binnema
f02a043741
* mu-msg-iter.{cc,h}: clear-up api, update callers
2011-05-19 00:26:14 +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
0c783567cf
* mu-msg, mu-msg-file: move gmime-init to mu-msg-file, fix get_num_field
2011-05-18 23:35:44 +03:00
Dirk-Jan C. Binnema
6fc029a6d3
* mu-msg-iter: implement in terms of mu-msg
2011-05-18 23:33:56 +03:00
Dirk-Jan C. Binnema
0f20ce6273
* fix some of the merge fallout
2011-05-18 22:20:39 +03:00
Dirk-Jan C. Binnema
2e717a92f9
* test-mu-{cmd,msg,query}.c: update (c) year
2011-05-18 22:14:38 +03:00
Dirk-Jan C. Binnema
c6c3dd99c1
* tests/Makefile.am, tests/test-mu-contacts.c: add mu_contacts unit tests
2011-05-18 22:14:24 +03:00
Dirk-Jan C. Binnema
e2934ff9fc
* mu-contacts: cosmetics
2011-05-18 22:14:08 +03:00
Dirk-Jan C. Binnema
fa0882ed90
* test-mu-{cmd,msg,query}.c: update (c) year
2011-05-18 21:21:10 +03:00
Dirk-Jan C. Binnema
0f71852aea
* tests/Makefile.am, tests/test-mu-contacts.c: add mu_contacts unit tests
2011-05-18 21:20:17 +03:00
Dirk-Jan C. Binnema
75e7daac65
* mu-contacts: cosmetics
2011-05-18 19:19:08 +03:00
Dirk-Jan C. Binnema
bb18f312d6
* fix mu-msg for the 'mu view' issue found during checking for issue #38 --
...
don't encode the addresses you get
2011-05-18 09:06:23 +03:00
Dirk-Jan C. Binnema
7e721953fd
* test-mu-query.c: add specific tests for searching accented chars, as per #38
...
this seems to work even for "Kröger", even though 'mu view' does not show
the correct value. It could be some inconsistency in GMime, need to check.
2011-05-18 00:40:10 +03:00
Dirk-Jan C. Binnema
16180ced2a
* tests/: add tests for issues mentioned in issue #38
...
(http://code.google.com/p/mu0/issues/detail?id=38 ).
Cannot reproduce the issue though, except when searching for the 'From:' --
this seems to be due to limitation with GMime, if I do:
mu view testdir/cur/1305664394.2171_402.cthulhu\!2,
get:
-------------------------------
From: Mü <testmu@testmu.xx>
To: Helmut =?iso-8859-1?q?Kr=F6ger?= <hk@testmu.xxx>
Subject: Motörhead
Test for issue #38 , where apparently searching for accented words in subject,
to etc. fails.
What about here? Queensrÿche. Mötley Crüe.
-------------------------------
They decoding issues are of course very mail-client specific.
2011-05-18 00:39:52 +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
f6c21aaadc
* 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:22:19 +03:00
Dirk-Jan C. Binnema
ca9dc6ee6b
* test-mu-query.c: add specific tests for searching accented chars, as per #38
...
this seems to work even for "Kröger", even though 'mu view' does not show
the correct value. It could be some inconsistency in GMime, need to check.
2011-05-18 00:15:52 +03:00
Dirk-Jan C. Binnema
3d79ba8c13
* tests/: add tests for issues mentioned in issue #38
...
(http://code.google.com/p/mu0/issues/detail?id=38 ).
Cannot reproduce the issue though, except when searching for the 'From:' --
this seems to be due to limitation with GMime, if I do:
mu view testdir/cur/1305664394.2171_402.cthulhu\!2,
get:
-------------------------------
From: Mü <testmu@testmu.xx>
To: Helmut =?iso-8859-1?q?Kr=F6ger?= <hk@testmu.xxx>
Subject: Motörhead
Test for issue #38 , where apparently searching for accented words in subject,
to etc. fails.
What about here? Queensrÿche. Mötley Crüe.
-------------------------------
They decoding issues are of course very mail-client specific.
2011-05-18 00:00:10 +03:00
Dirk-Jan C. Binnema
7a8a519f41
* test-mu-cmd.c: remove debug garbage from test_mu_view_01
2011-05-17 23:25:10 +03:00
Dirk-Jan C. Binnema
caef14f316
* mu-msg-iter.{cc,h}: updete for mu-msg-data removal
2011-05-17 23:24:29 +03:00
Dirk-Jan C. Binnema
438299a7d6
* Makefile.am: update for the changed/removed/renamed files
2011-05-17 23:20:31 +03:00
Dirk-Jan C. Binnema
3cdc810e81
* mu-msg.c, mu-msg-priv.h: hook up with mu-msg-cache, mu-msg-file and mu-msg-doc
2011-05-17 23:20:05 +03:00
Dirk-Jan C. Binnema
dbfd08e6cf
* mu-msg-file: improve header file, add some gcc-attributes
2011-05-17 23:18:58 +03:00
Dirk-Jan C. Binnema
6fdb329d26
* complete initial implementation of mu-msg-cache
2011-05-17 23:17:50 +03:00
Dirk-Jan C. Binnema
bf4314533b
* mu-msg-db => mu-msg-doc
2011-05-17 23:17:11 +03:00
Dirk-Jan C. Binnema
d7a1c7699b
* mu-msg-data, mu-msg-data: removed
2011-05-17 23:16:24 +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
f9f3c11f28
* mu_msg_file.h, mu_msg.h: documentation improvements
2011-05-15 10:40:58 +03:00
Dirk-Jan C. Binnema
9a1ccc3103
* re-enable message summaries
2011-05-15 10:40:29 +03:00
Dirk-Jan C. Binnema
b990bcb054
* mu-msg-db.[cc,h]: basic implementation of Xapian::Document backend for MuMsg
...
(WIP, but compiles)
2011-05-15 10:39:27 +03:00
Dirk-Jan C. Binnema
6f33f76797
* merge mu-msg-contact.[ch] with mu-msg.[ch]
2011-05-14 18:14:24 +03:00
Dirk-Jan C. Binnema
c0a24cf7bc
* mu-msg-*: take mu_msg_cache into use
2011-05-14 18:07:51 +03:00
Dirk-Jan C. Binnema
0cd1e78239
* updates for summary field removal
2011-05-14 18:07:07 +03:00
Dirk-Jan C. Binnema
81f43467eb
* mu-msg-fields.[ch]: reindent, remove MU_MSG_FIELD_ID_SUMMARY
2011-05-14 18:06:33 +03:00
Dirk-Jan C. Binnema
3607459771
* Makefile.am: add mu-msg-cache compilation
2011-05-14 18:05:20 +03:00
Dirk-Jan C. Binnema
0dcd523e16
* add mu-msg-cache.[ch] for caching MuMsg data
2011-05-14 18:04:30 +03:00
Dirk-Jan C. Binnema
df984f3106
* mu-query.cc: enable wildcard queries (Xapian::QueryParser::FLAG_WILDCARD)
2011-05-09 12:00:50 +03:00
Dirk-Jan C. Binnema
f06d8b466e
* mu-query.cc: enable wildcard queries (Xapian::QueryParser::FLAG_WILDCARD)
2011-05-09 09:33:33 +03:00
Dirk-Jan C. Binnema
7766d8db9c
* mu-msg.c: fix indentation
2011-05-09 09:33:01 +03:00
Dirk-Jan C. Binnema
7aea532838
* fix some small issues
2011-05-09 09:20:27 +03:00
Dirk-Jan C. Binnema
53b87a79eb
* <many> WIP: refactor mu-msg -- mu-msg-file
2011-05-09 02:58:33 +03:00
Dirk-Jan C. Binnema
3223892e24
* mu-maildir: also ignore .#evolution, update comments a bit
2011-05-06 08:33:37 +03:00
Dirk-Jan C. Binnema
0758ab6645
* refactoring: merge mu-msg-file with mu-maildir
2011-05-06 08:11:47 +03:00
Dirk-Jan C. Binnema
b28bea9650
* mu-contacts: don't ignore whitespace in regexp (by default), so you can use
...
"mu cfind 'John Smith'"
2011-05-05 22:53:04 +03:00
Dirk-Jan C. Binnema
3e01853243
* mu-msg.c: fix compiler warning due to optimization
2011-05-05 22:51:47 +03:00
Dirk-Jan C. Binnema
5defbd8a15
* mu-contacts.c: don't use g_key_file_(get|set)_uint64, it's requires a too
...
new glib
2011-05-04 01:43:01 +03:00
Dirk-Jan C. Binnema
e039047e64
* mu-msg-data.[ch]: copy refs as well, small cleanups
2011-05-03 08:19:34 +03:00
Dirk-Jan C. Binnema
20168df0c0
* test-mu-cmd.c: fix test case for apparently yet another diff between GMime versions
2011-05-03 08:18:58 +03:00
Dirk-Jan C. Binnema
e611c8cb8f
* mu-msg-iter.{cc,h}: add mu_msg_iter_get_refs, small updates
2011-05-03 08:18:08 +03:00
Dirk-Jan C. Binnema
c07b8e4529
* <many> add support for displaying, searching the Bcc: field
2011-05-01 18:31:00 +03:00
Dirk-Jan C. Binnema
301de1bb81
* mu-store.cc: some optimizations:
...
- cache the prefix strings
- use alloca for not too long string terms
2011-05-01 15:55:25 +03:00
Dirk-Jan C. Binnema
41ae585955
* cosmetics
2011-05-01 15:01:03 +03:00
Dirk-Jan C. Binnema
f02cdf1f00
* mu-msg-iter: improve code documentation
2011-05-01 15:00:28 +03:00
Dirk-Jan C. Binnema
a633475e1b
* cosmetics
2011-04-30 13:52:17 +03:00
Dirk-Jan C. Binnema
cec2a53265
* mu-output: don't print (null) for NULL-strings
2011-04-30 13:51:26 +03:00
Dirk-Jan C. Binnema
e33f927542
* add support for message-references:
...
- mu_msg_get_references and mu_msg_get_references_str get the list of
refences ("References:" and "In-reply-to:") as a GList,
resp. comma-separated list
- stored in database as a value, can be shown in mu find output using 'r'
(db needs rebuild)
- document in mu-find manpage
2011-04-30 13:50:56 +03:00
Dirk-Jan C. Binnema
efa026648b
* mu-store.cc: some optimizations, and add the possibility to use the slightly
...
faster 'add_document' instead of 'replace_document' (it's not used yet though)
2011-04-30 11:31:34 +03:00
Dirk-Jan C. Binnema
fda03bd562
* mu-store.cc: fix tiny leak
2011-04-30 10:09:12 +03:00
Dirk-Jan C. Binnema
4fec4b4100
* mu-cmd-index.c: optimize printing of progress information
2011-04-30 10:08:58 +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
c8dc40dadd
* mu-maildir: some micro optimizations
2011-04-16 14:26:06 +03:00
Dirk-Jan C. Binnema
f49f36bede
* update test_view so we don't fail with gmime 2.4.24
2011-04-16 14:25:40 +03:00
Dirk-Jan C. Binnema
c6fb50b166
* fix compiler warnings for gcc 4.5
2011-04-15 08:49:04 +03:00
Dirk-Jan C. Binnema
f9acc69975
* add mu-msg-data-cache.[ch], WIP for the new custom tree model
2011-03-31 23:09:14 +03:00
Dirk-Jan C. Binnema
b27a9f47c4
* add 'flag:unread' as a synonym for 'flag:new OR NOT flag:seen'
...
- update documentation
- update test cases
- some cleanups in the C++-code
- bump the database version, to trigger the --rebuild warning
2011-03-31 23:08:26 +03:00
Dirk-Jan C. Binnema
9a4ba103d2
* mu-msg-data.c: add missing #include <string.h> for memcpy
2011-03-22 23:41:12 +02:00
Dirk-Jan C. Binnema
054282dc63
* mu-str.h: improve mu_str_is_empty macro
2011-03-22 23:37:17 +02:00
Dirk-Jan C. Binnema
adf45c4ee0
* mu-msg-iter.cc, mu-query.cc, mu-store.cc: use more c++ facilities
2011-03-22 23:37:01 +02:00
Dirk-Jan C. Binnema
26286e2dbb
* add mu-msg-data.[ch], which is useful when one needs to cache message data
...
(ie., iterators are good for printing to screen, but mu-msg-data is for
msg data that should be kept in-memory)
2011-03-22 23:36:11 +02:00
Dirk-Jan C. Binnema
9727614f41
* Makefile.am: add mu-msg-data.[ch]
2011-03-21 01:56:54 +02:00
Dirk-Jan C. Binnema
186e44ca66
* mu-query: some cleanups
2011-03-21 01:56:32 +02:00
Dirk-Jan C. Binnema
656004ee9e
* mu-msg-iter: some reimplementation
2011-03-21 01:55:11 +02:00
Dirk-Jan C. Binnema
4f93f7cc05
* add mu_msg_iter_get_index, to get the sequence number of the iterator
2011-03-19 10:11:13 +02:00
Dirk-Jan C. Binnema
b98af916b5
* mu-config.c: small docu update
2011-03-19 10:08:20 +02:00
Dirk-Jan C. Binnema
d98f1e52ad
* mu_runtime: update getting standard dirs / paths, use them
2011-03-19 10:07:32 +02:00
Dirk-Jan C. Binnema
12a992b8d2
* fix mu_msg refcounting in widgets
2011-03-15 20:38:26 +02:00
Dirk-Jan C. Binnema
f8fd420215
* add support for using mu cfind as an external address book for 'mutt' + document
2011-03-06 12:40:08 +02:00
Dirk-Jan C. Binnema
3b445d9fac
* mu-contacts: plug a leak + some optimization
2011-03-06 12:16:04 +02:00
Dirk-Jan C. Binnema
1a504b50a4
* mu-config: some refactoring to satisfy make line33
2011-03-06 12:15:43 +02:00
Dirk-Jan C. Binnema
f1056d9ddb
* mu-cmd-cfind: use the new first_name/last_name/nick functions to generate
...
better address book data
2011-03-06 12:15:22 +02:00
Dirk-Jan C. Binnema
9a600e71c9
* mu-str: add mu_str_guess_first_name, mu_str_guess_last_name and
...
mu_str_guess_nick, + unit tests
these function do a simple guess for the first/lastname and nick, so we can
prefill the results of 'mu cfind' with some first guesses.
2011-03-06 12:14:26 +02:00
Dirk-Jan C. Binnema
17f2e3bdf9
* WIP: add bbdb export support
2011-03-05 17:41:13 +02:00
Dirk-Jan C. Binnema
1e9ec55034
* use differerent exit codes for error, no matches as >0 matches; as per man page
2011-03-05 15:07:49 +02:00
Dirk-Jan C. Binnema
35e9e0ea8b
* add mu-cmd-cfind.c to Makefile.am
2011-03-05 09:42:52 +02:00
Dirk-Jan C. Binnema
b6cfe6f748
* mu-cmd-cfind: split off into separate mu-cmd- file
2011-03-05 09:42:06 +02:00
Dirk-Jan C. Binnema
86971d53d8
* WIP: basic 'mu cfind' command + start of man page
2011-03-05 00:59:35 +02:00
Dirk-Jan C. Binnema
6226754a25
* WIP: mu-contacts; add the following: return timestamp callback and add regexp filtering capabilities
2011-03-03 21:22:11 +02:00
Dirk-Jan C. Binnema
b9be7f210c
* WIP: rudimentary implementation of the 'cfind' command, to find contacts
2011-03-02 23:26:54 +02:00
Dirk-Jan C. Binnema
0bc10837fe
* fix mu-cmd-index.c, mu-store.c to honor line33
2011-03-02 23:03:24 +02:00
Dirk-Jan C. Binnema
01c9410d0f
* WIP(2): mu-contact.[ch], basic implementation
2011-03-02 22:39:32 +02:00
Dirk-Jan C. Binnema
deeaf41f33
* WIP: contact listing / searching.
...
this is the first part, adding a cache for all the contacts in mails
(~/.mu/cache/contacts), which is a .ini-type file.
2011-03-02 00:13:24 +02:00
Dirk-Jan C. Binnema
ad5aae2c6b
* mu-runtime.c: fix small memleak
2011-02-06 10:50:39 +02:00
Dirk-Jan C. Binnema
d015b04c2a
* mu-msg.c: convert html mail to utf-8, too. this fixes the display of
...
non-utf8 html with chars outside ascii
2011-02-06 10:49:36 +02:00
Dirk-Jan C. Binnema
1276b77a17
* mu-index.c: fix needless warning when msg is no longer there
2011-02-04 20:52:49 +02:00
Dirk-Jan C. Binnema
b1a17a1b9b
* mu_store_get_timestamp: fix memleak
2011-02-04 20:47:56 +02:00
Dirk-Jan C. Binnema
965b34fd70
* test_mu_view_01: the test depended on a MIME-decoding bug in gmime; since that bug has
...
been fixed in newer versions, accept the outcome of that, too.
2011-01-31 20:56:28 +02:00
Dirk-Jan C. Binnema
2473c9599c
* cosmetics
2011-01-31 09:15:55 +02: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
96d0b4b1d4
* test-mu-cmd.c: always set a tempdir for muhome; this fixes running unit
...
tests as a different user, and prevents unit test logs to end up in your
normal log
2011-01-31 09:14:54 +02:00
Dirk-Jan C. Binnema
5997973d41
* mu-cmd-extract.c: only check for writability of targetdir if we're actually
...
going to write something; this fixes running unit tests in a unwritable env
2011-01-31 09:13:26 +02:00
Dirk-Jan C. Binnema
354cc421ea
* src/Makefile.am: use BUILD_TESTS
2011-01-31 09:12:31 +02:00
Dirk-Jan C. Binnema
77a1727237
* test-mu-util.c: remove bad test that broke the gentoo build
2011-01-30 10:38:51 +02:00
Dirk-Jan C. Binnema
6842c8c8a1
* mu_str_display_contact_s: split, so 'make cc10' is honored
2011-01-29 15:00:46 +02:00
Dirk-Jan C. Binnema
3ea01df556
* cosmetics
2011-01-29 12:45:21 +02:00
Dirk-Jan C. Binnema
a2dbe365c6
* unbreak mu-str
2011-01-21 20:13:18 -05:00
Dirk-Jan C. Binnema
aab3226d90
* remove '-characters, () from contact displays
2011-01-21 20:11:11 -05:00
Dirk-Jan C. Binnema
27965456ad
* mu-maildir: some cleanups, shorten names for link creation
2011-01-16 13:54:32 +02:00
Dirk-Jan C. Binnema
c76af05a7a
* make mag-msg-store a configurable parameter; refactor the setting of the
...
xapian batch size
2011-01-15 13:27:41 +02:00
Dirk-Jan C. Binnema
62acc7739d
* change MuMaildirWalkMsgCallback so it take a full stat buf* instead of just
...
the ctime; then do the checking for the file size (st_size) in mu-index
also, update a unit test which was using an invalid MuMaildirWalkMsgCallback
2011-01-15 11:53:18 +02: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
1b69d1a835
* cosmetics
2011-01-13 21:41:19 +02:00
Dirk-Jan C. Binnema
a9a2e1f94f
* mu-config: better argument check, print usage info when no command is provided
2011-01-13 21:41:07 +02:00
Dirk-Jan C. Binnema
4aa838f6f6
* mug2: implement database reindex
2011-01-13 00:27:27 +02:00
Dirk-Jan C. Binnema
321cae64b9
* updato to build system, don't require too new libtool
2011-01-12 23:14:17 +02:00
Dirk-Jan C. Binnema
eb6ca790fb
* update test-mu-store test case
2011-01-12 23:13:36 +02:00
Dirk-Jan C. Binnema
d1bf8b3c73
* improve checks for database version
2011-01-12 23:13:03 +02:00
Dirk-Jan C. Binnema
87f9dc6cb6
* remember last-used maildir, and use it as default for next run
2011-01-12 23:11:51 +02:00
Dirk-Jan C. Binnema
0b7d136033
* mu-cmd-extract: update date
2011-01-12 23:10:15 +02:00
Dirk-Jan C. Binnema
fa6e834cb7
* mu-cmd, mu-extract.c: split off mu-extract stuff in separate file
2011-01-12 23:09:09 +02:00
Dirk-Jan C. Binnema
22defba76a
* test-mu-cmd.c: update test
2011-01-11 23:22:24 +02:00
Dirk-Jan C. Binnema
679f56b047
* mu-str: minor
2011-01-11 23:22:00 +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
f2e8927f6f
* mu-msg-fields: store escaped versions of maildirs, so matching works for 'strangely named' ones
2011-01-11 23:18:55 +02:00
Dirk-Jan C. Binnema
9d630daf73
* mu-cmd: fix saving of attachments
2011-01-11 23:17:37 +02:00
Dirk-Jan C. Binnema
81fe752515
* mu-msg-part: cleanups & fixes, added mu_msg_part_looks_like_attachment
2011-01-11 23:17:03 +02:00
Dirk-Jan C. Binnema
923549e2bb
* <many>: updates for new MIME-part handling
2011-01-11 00:46:46 +02:00
Dirk-Jan C. Binnema
da16959a33
* mu-msg, mu-msg-part: overhaul of mime-part handling
2011-01-11 00:45:03 +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
56cfe14062
* mu-msg-part: cosmetics
2011-01-09 18:55:18 +02:00
Dirk-Jan C. Binnema
e0b484e922
* make mu-cmd reference-counted (make mu_msg_destroy internal, use
...
mu_msg_unref instead)
2011-01-09 18:54:14 +02:00
Dirk-Jan C. Binnema
f1cedf7341
* mu-cmd-find.c: refactor a bit so we pass line33
2011-01-09 15:12:27 +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
b46d591796
* start working on some mu-based widgets (widgets/), create toys2/mug2 for testing
2011-01-08 12:48:25 +02:00
Dirk-Jan C. Binnema
580b357e3d
* fix mu output_sexp
2011-01-07 08:32:09 +02:00
Dirk-Jan C. Binnema
8b9df09a65
* cosmetics
2011-01-07 08:31:36 +02:00
Dirk-Jan C. Binnema
92108c0b66
* cosmetic
2011-01-06 17:32:42 +02:00
Dirk-Jan C. Binnema
c712267c0f
* fix json, sexp output
2011-01-06 16:55:43 +02:00
Dirk-Jan C. Binnema
f6de417117
* add warning for using --xquery
2011-01-06 16:34:21 +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
9dd93ab668
* mu-cmd-find: some refactoring to pass line33
2011-01-06 16:21:32 +02:00
Dirk-Jan C. Binnema
c5b3059442
* add searching for message size ranges
2011-01-06 16:21:09 +02:00
Dirk-Jan C. Binnema
f8af665151
* mu-output.c, mu-str.[ch]: fix escaping for JSON, sexps (add mu_str_escape_c_literal)
2011-01-06 13:55:16 +02:00
Dirk-Jan C. Binnema
cafba1327f
* test-mu-cmd.c: add test case for 'mu mkdir'
2011-01-06 13:25:11 +02:00
Dirk-Jan C. Binnema
d41ae5dfd5
* mu-msg: cosmetic
2011-01-06 13:15:01 +02:00
Dirk-Jan C. Binnema
071b230e60
* mu-cmd.c: fix mu view
2011-01-06 13:14:42 +02:00
Dirk-Jan C. Binnema
f00f1dc01b
* add test case for mu view
2011-01-06 13:14:17 +02:00
Dirk-Jan C. Binnema
5487989b99
* fix display (iter) of message size
2011-01-06 00:09:26 +02:00
Dirk-Jan C. Binnema
535f1c78fa
* initial sexp output support (WIP)
2011-01-05 23:37:53 +02:00
Dirk-Jan C. Binnema
3ab2cd11a9
* initial JSON output support (WIP)
2011-01-05 23:22:41 +02:00
Dirk-Jan C. Binnema
4409b565dc
* start of XML output support (WIP)
2011-01-05 22:46:10 +02:00
Dirk-Jan C. Binnema
2303bc4f59
* fix for the removal of mu-util-db.h
2011-01-05 20:45:31 +02:00
Dirk-Jan C. Binnema
aa22e5e90d
* some further cleanups
2011-01-05 20:38:33 +02:00
Dirk-Jan C. Binnema
6539ae4bd7
* initial plumbing and some documentation for xml/json/sexp output through
...
--format= parameter.
also, add --format=links, --format=xquery
2011-01-05 20:35:50 +02:00
Dirk-Jan C. Binnema
56f1664d8c
* some further cleanups, add mu-output.h
2011-01-05 00:21:43 +02:00
Dirk-Jan C. Binnema
516caccf10
* fix some small errors, add missing file
2011-01-04 23:52:16 +02:00
Dirk-Jan C. Binnema
ce5df2d6e5
* some further cleanups / refactoring
2011-01-04 23:44:18 +02:00
Dirk-Jan C. Binnema
f509fd20ec
* remove some garbage files
2011-01-04 23:37:01 +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
6483e9d39e
* fix test-mu-cmd.c for stricter option checks
2011-01-02 18:45:45 +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
091dedf954
* make option parsing specific for the mu command
2011-01-02 18:10:11 +02:00
Dirk-Jan C. Binnema
0101837c38
* mu-cmd-index.c: add a check for the --xbatchsize parameter
2011-01-02 18:09:30 +02:00
Dirk-Jan C. Binnema
169196498e
* <many>: add option to change the batch size for xapian transactions
2011-01-02 18:05:43 +02:00
Dirk-Jan C. Binnema
0b88f86e65
* mu-config.c: cosmetics
2011-01-02 14:59:03 +02:00
Dirk-Jan C. Binnema
1f240e55fe
* mu-msg-iter: add some casting to prevent compiler warning
2010-12-18 10:44:27 +02:00
Dirk-Jan C. Binnema
6d2cc60a5e
* Makefile.am/configure.ac: some changes to make Solaris a bit happier
2010-12-17 08:34:31 +02:00
Dirk-Jan C. Binnema
2950d29ca7
* mu-maildir: use GError, not g_warning
2010-12-17 08:33:48 +02:00
Dirk-Jan C. Binnema
b00a85ec07
* add test_mu_util_get_dtype_with_lstat unit test, cosmetics
2010-12-12 18:33:25 +02:00
Dirk-Jan C. Binnema
a315e15081
* cosmetics
2010-12-12 18:32:37 +02:00
Dirk-Jan C. Binnema
6820923119
* initialize variable in get_flags_str_s
2010-12-12 18:32:15 +02:00
Dirk-Jan C. Binnema
64fcbe7603
* mu-msg-file: cosmetics
2010-12-11 13:53:50 +02:00
Dirk-Jan C. Binnema
0565587dda
* mu-runtime: use mu_util_init_system, some cosmetics
2010-12-11 13:53:20 +02:00
Dirk-Jan C. Binnema
d602ad1f47
* mu-error.h: add some error codes
2010-12-11 13:52:36 +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
c0e50f8d91
* test-mu-str.c: cosmetics
2010-12-07 23:20:19 +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
39d71b8e3b
* use mu_str_ascii_xapian_escape instead of local version; and non-in-place version
2010-12-07 23:19:13 +02:00
Dirk-Jan C. Binnema
4babb4d036
* mu-msg.c: use mu-msg-file
2010-12-07 23:17:42 +02:00
Dirk-Jan C. Binnema
b7e3786af7
* mu-config.c: cosmetics
2010-12-07 23:17:05 +02:00
Dirk-Jan C. Binnema
373973d813
* src/Makefile.am: add mu-msg-file.[ch], -pedantic for c-builds
2010-12-07 23:16:32 +02:00
Dirk-Jan C. Binnema
372e245fc7
* mu_msg_flags_from_file => mu_msg_file_get_flags_from_path
2010-12-07 23:15:38 +02:00
Dirk-Jan C. Binnema
2d0959ec63
* add mu-msg-file, unit tests
2010-12-07 23:14:11 +02:00
Dirk-Jan C. Binnema
68af173246
* use GError in various mu_maildir function to return error info
2010-12-05 16:29:53 +02:00
Dirk-Jan C. Binnema
8321f6718a
* mu_maildir_mkmdir => mu_maildir_mkdir
2010-12-05 15:40:40 +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
104efbca04
* test-mu-store.c: stay within 33 line limit for functions
2010-12-04 12:37:57 +02:00
Dirk-Jan C. Binnema
9325828c77
* src/Makefile.am: put files in alphabetical order
2010-12-04 12:37:38 +02:00
Dirk-Jan C. Binnema
13b1e87cc4
* mu-str-normalize.c: add note about alternative implementation
2010-12-03 20:53:25 +02:00
Dirk-Jan C. Binnema
10b0f321c8
* update some unit test cases
2010-12-03 20:45:01 +02:00
Dirk-Jan C. Binnema
94487cfe9a
* add some simply unit tests for mu-runtime, mu-store
2010-12-01 21:57:36 +02:00
Dirk-Jan C. Binnema
3560eecf3a
* mu_date_parse_hdwmy => mu_str_date_parse_hdwmy; update unit tests + code
2010-11-30 22:33:15 +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
2b393ed7c5
* make error messages more consistent
2010-11-30 09:02:29 +02:00
Dirk-Jan C. Binnema
340f2141c4
* cosmetic
2010-11-30 08:33:15 +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
3d3a4f8308
* mu-query.cc, mu-store.cc: use the escaping for some fields; update test case
2010-11-29 21:29:43 +02:00
Dirk-Jan C. Binnema
bb5b1304e5
* mu-str.[ch]: add mu_str_ascii_xapian_escape_in_place, for escaping some
...
Xapian fields; also add some tests
2010-11-29 21:21:55 +02:00
Dirk-Jan C. Binnema
c6dadad978
* mu-str-normalize.c: combine separate function for downcse / non-downcase
...
cases into one.
2010-11-29 21:19:45 +02:00
Dirk-Jan C. Binnema
d573c57485
* mu-msg-fields.[ch]: add info whether the field should be normalized/escaped
2010-11-29 21:18:37 +02:00
Dirk-Jan C. Binnema
52972f1ec9
* test cases: update for mu-msg / mu-runtime change
2010-11-27 16:07:24 +02:00
Dirk-Jan C. Binnema
9916bb3ecc
* mu-msg, mu-runtime: make g_mime_init explicit, mu-runtime can do it.
2010-11-27 16:06:55 +02:00
Dirk-Jan C. Binnema
513fe9ef3a
* mu-str.h: add note about unicode blocks supported for mu_str_normalize ('Latin-1 Supplement' and 'Latin Extended-A')
2010-11-27 15:06:57 +02:00
Dirk-Jan C. Binnema
e0d8d1fcdc
* cosmetics
2010-11-27 14:56:25 +02:00
Dirk-Jan C. Binnema
5341e8d4a8
* mu-msg.c: refactor to make functions respect 33-lines limit and use GMIME_ENABLE_RFC2047_WORKAROUNDS
2010-11-27 14:55:25 +02:00
Dirk-Jan C. Binnema
c5c51f3798
* mu-index.c: refactor to make functions respect 33-lines limit
2010-11-27 14:54:19 +02:00
Dirk-Jan C. Binnema
b200b63a55
* mu-cmd-view.c: refactor to make functions respect 33-lines limit
2010-11-27 14:53:56 +02:00
Dirk-Jan C. Binnema
dfeb0f7736
* update tests for GError-changes
2010-11-25 21:49:44 +02:00
Dirk-Jan C. Binnema
e22149fa46
* add some GErrors
2010-11-25 21:49:25 +02:00
Dirk-Jan C. Binnema
eb4e35f524
* improve date range parsing
2010-11-24 23:30:41 +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
f59ac88118
* mug.c: show error dialogs for errors; focus query when there was a parse error
2010-11-24 09:03:06 +02:00
Dirk-Jan C. Binnema
e5089c06a3
* mu-cmd-find.c: update for GErrors in mu_query; fix uninit'd var problem
2010-11-24 00:48:28 +02:00
Dirk-Jan C. Binnema
b87b5d25fd
* use GError to convey error info in MuQuery; update users
2010-11-24 00:47:36 +02:00
Dirk-Jan C. Binnema
21c01f156d
* fix sorting, some small cleanups
2010-11-23 23:52:37 +02:00
Dirk-Jan C. Binnema
e823b535b1
* mu-query.cc: simplify date searching a bit
2010-11-23 22:06:57 +02:00
Dirk-Jan C. Binnema
d0e9f315a8
* minor
2010-11-23 22:06:17 +02:00
Dirk-Jan C. Binnema
819fe8c93f
* minor
2010-11-23 22:05:55 +02:00
Dirk-Jan C. Binnema
0f2b4e2d3c
* rename mu_msg_str => mu_str
2010-11-23 00:44:18 +02:00
Dirk-Jan C. Binnema
89b85cf7f7
* mu-store.cc, mu-query.cc: improved date-range matching
2010-11-23 00:33:15 +02:00
Dirk-Jan C. Binnema
e141908b7c
* cosmetics
2010-11-22 21:44:54 +02:00
Dirk-Jan C. Binnema
e0cada86d6
* add date-range searches using date:/d:
2010-11-21 18:12:01 +02:00
Dirk-Jan C. Binnema
4a4a2e39d5
* mu-msg.c: improvement for prio
2010-11-21 15:44:23 +02:00
Dirk-Jan C. Binnema
3c0cc47d8b
* mu-msg-str.c: minor
2010-11-21 15:43:34 +02:00
Dirk-Jan C. Binnema
04305eadaa
* mu-msg-prio: some coding updates
2010-11-21 15:43:11 +02:00
Dirk-Jan C. Binnema
29ed5fbcf3
* make prio: fields now also searchable
2010-11-21 15:42:53 +02:00
Dirk-Jan C. Binnema
79395b11ac
* mu-msg-flags.[ch]: minor
2010-11-21 15:42:08 +02:00
Dirk-Jan C. Binnema
085d0732c1
* unit tests: updated for other changes
2010-11-21 15:41:25 +02:00
Dirk-Jan C. Binnema
f114d2f511
* testcases: update for other changes, add some tests
2010-11-21 13:43:40 +02:00
Dirk-Jan C. Binnema
38f39d846e
* mu-output-plain.c: update for prio stuff refactoring
2010-11-21 13:43:15 +02:00
Dirk-Jan C. Binnema
0bada3350f
* mu-msg-str.c: cosmetics
2010-11-21 13:42:28 +02:00
Dirk-Jan C. Binnema
e7d453774c
* mu-msg-str.[ch]: remove functionality which is now in mu-msg-prio.[ch]
2010-11-21 13:41:38 +02:00
Dirk-Jan C. Binnema
783d5e4121
* cosmetics
2010-11-21 13:41:01 +02:00
Dirk-Jan C. Binnema
e9d6540b1f
* mu-msg-flags.[ch]: minor
2010-11-21 13:39:43 +02:00
Dirk-Jan C. Binnema
63f06e756e
* mu-msg-fields.h: minor
2010-11-21 13:38:11 +02:00
Dirk-Jan C. Binnema
5ad35ab766
* mu-msg-prio.[ch]: add implementation
2010-11-21 13:36:22 +02:00
Dirk-Jan C. Binnema
5f0774e810
* mu-runtime.[ch]: update documentation
2010-11-20 20:29:11 +02:00
Dirk-Jan C. Binnema
5f84cb5025
* mu-msg-contact.[ch]: add _new, _destroy functions
2010-11-20 20:28:54 +02:00
Dirk-Jan C. Binnema
2c639e3122
* test-mu-cmd.c: add some test cases
2010-11-20 18:42:32 +02:00
Dirk-Jan C. Binnema
e8556fd303
* mu-msg.c / test-mu-msg.c: improve attachment detection
2010-11-20 18:41:57 +02:00
Dirk-Jan C. Binnema
da7140a602
* mu-msg-iter.cc: remove debugging stuff
2010-11-20 17:51:24 +02:00
Dirk-Jan C. Binnema
c688cad8fc
* fix mu_msg_field_type_is_numeric + unit test
2010-11-20 17:50:35 +02:00
Dirk-Jan C. Binnema
5818c40d7f
* <many>: fix source code checks; move mu_msg_str_normalize to separate file
2010-11-20 17:27:17 +02:00
Dirk-Jan C. Binnema
2c8bd1015d
* cosmetic
2010-11-20 16:37:59 +02:00
Dirk-Jan C. Binnema
c1b143c958
* cosmetic
2010-11-20 16:37:43 +02:00
Dirk-Jan C. Binnema
20e39933e5
* many: fix unit tests, add synonyms (WIP -- not working yet)
2010-11-20 16:37:23 +02:00
Dirk-Jan C. Binnema
208322527b
* mu-log: don't complain when unit is called when not already initialized
2010-11-20 16:14:26 +02:00
Dirk-Jan C. Binnema
d1494028e7
* update testcases for mu-msg-field
2010-11-20 14:43:35 +02:00