1
0
mirror of https://github.com/djcb/mu.git synced 2024-07-03 08:31:07 +02:00
Commit Graph

336 Commits

Author SHA1 Message Date
djcb
827dfbecdb * mu-date: small optimization 2013-09-07 12:57:53 +03:00
djcb
13bad9a889 * better error message for some broken queries 2013-09-07 09:43:33 +03:00
djcb
c30ffeea72 * small cleanups (macos) 2013-08-25 20:05:57 +03:00
djcb
f89447e65c * mu_util_fputs_encoded: updated; perhaps helps with freebsd crash? 2013-08-14 21:59:31 +03:00
djcb
885554757a * mu: some improvement in script handling 2013-07-23 22:23:27 +03:00
djcb
b7324d5af6 * cleanup: drop gmime-2.4 support 2013-07-21 14:44:44 +03:00
djcb
b17f26537b * mu: unbreak unit test after flag changes (fixes #247) 2013-07-07 10:46:35 +03:00
djcb
312c3a4b20 * cosmetic 2013-07-03 21:56:42 +03:00
djcb
3c3cd31607 * mu-str: fix a leak 2013-07-03 21:56:04 +03:00
djcb
1fcedf742c * mu-mgs-store: support the MU_FLAG_LIST flag 2013-07-03 21:55:41 +03:00
djcb
3eb748737c * mu-msg-file: set the MU_FLAG_LIST flag, if the message looks like an ML-message 2013-07-03 21:55:17 +03:00
djcb
81c3e11c48 * mu-flags: add MU_FLAG_LIST, clean-up code a bit 2013-07-03 21:54:08 +03:00
djcb
7fe37334b5 * cosmetics 2013-06-24 22:44:36 +03:00
djcb
97909566df * mu-contacts, mu-msg-file: better deal with contacts with control chars 2013-06-24 22:42:18 +03:00
djcb
6783e448aa * mu-str: add mu_str_remove_ctrl_in_place 2013-06-24 22:41:34 +03:00
djcb
bfe74d1d11 * mu: add the backend for freq information for contacts 2013-06-16 23:02:19 +03:00
djcb
42604fee00 * lib: mu-contacts: store frequency 2013-06-16 13:14:39 +03:00
djcb
fa514435ea * merge branch 'master' of github.com:djcb/mu 2013-06-13 23:56:35 +03:00
djcb
13efc74793 * mu-query: better handle empty lhs/rhs in date intervals 2013-06-03 22:29:50 +03:00
djcb
844790a2df * lib: mu date: better handling of date fields in newer xapians 2013-06-01 07:40:15 -07:00
djcb
d57b109557 * mu-str: treat '..' in non-range fields differently 2013-06-01 06:07:29 -07:00
djcb
e7c63cee47 * update some unit tests 2013-05-30 06:15:22 -07:00
djcb
b136ca0411 * try harder to match special strings 2013-05-29 07:33:17 -07:00
djcb
e97ec2d51c * fix matching backslashes, add some tests 2013-05-27 05:49:43 -07:00
djcb
bdf7ca65c7 * test-mu-maildir: fix regexp 2013-05-27 05:48:19 -07:00
djcb
c50c0695e4 * fix CSV quoting (fields with commas) 2013-05-27 04:23:49 -07:00
djcb
3dae623879 * add mu_str_replace 2013-05-26 11:16:02 -07:00
djcb
ad6b3d8f0f * add unit test for the optional message file renaming 2013-05-25 19:28:40 +03:00
djcb
7cb3bb9e36 * lib: make renaming messages upon moving them optional 2013-05-25 19:27:54 +03:00
djcb
33e6bf0184 * mu-str: comment-out debug print 2013-05-23 07:47:39 +03:00
djcb
2ae389afe1 * typo 2013-05-22 00:07:01 +03:00
djcb
89bdaafb15 * create a new filename (basename) when copying 2013-05-22 00:06:10 +03:00
djcb
10b64bb654 * cosmetic 2013-05-21 08:05:14 +03:00
djcb
e70101f058 * lib: fix compiler warning 2013-05-20 05:15:11 +03:00
djcb
59f855b39b * lib: add mu_str_parse_arglist + unit tests 2013-05-20 05:14:35 +03:00
djcb
a2eef4fa41 * handle invalid utf8; fixes #211 (hopefully) 2013-05-15 21:36:27 +03:00
djcb
f270847182 * lib: fix body layout 2013-05-15 00:42:33 +03:00
djcb
00d0cb0f28 * the query parser update (few commits back) fixes #210 too, this is unit test for it. 2013-05-15 00:17:36 +03:00
djcb
f787f3b9ee * lib: cleanup header fields a bit more; fixes #209 2013-05-15 00:08:38 +03:00
djcb
24fa47dbef * cosmetics 2013-05-15 00:05:21 +03:00
djcb
50fc992ae2 * fix list parsing 2013-05-13 23:01:53 +03:00
djcb
4174ac7ed2 * fix a few compiler warnings 2013-05-13 22:30:27 +03:00
djcb
ba2a56a9dd * lib: fix list parsing 2013-05-13 00:26:14 +03:00
djcb
5d069e786f * lib: updates for mu-msg-field / mu-str updates 2013-05-13 00:03:47 +03:00
djcb
31c3c3cfda * mu-msg-fields.[ch]: cleanup a bit 2013-05-13 00:03:06 +03:00
djcb
ea67447a98 * some cleanups 2013-05-13 00:02:39 +03:00
djcb
d26f3c0bae * mu-str: simplify, cleanup string pre-processing functions 2013-05-13 00:01:49 +03:00
djcb
5c95a1851d * lib: update comment 2013-05-04 14:14:58 +03:00
djcb
057fa6430e * mu: fix duplicate detection 2013-04-30 21:53:16 +03:00
djcb
7d48ed53a7 * mu: (re)add special handling for '$' (fixes #193) 2013-04-28 21:54:25 +03:00
djcb
3327a5566f * minor 2013-04-18 20:31:42 +03:00
djcb
f8719ba263 * mu: treat as \ as special, too 2013-04-18 20:31:28 +03:00
djcb
55acd92bd9 * mu: fix some valgrind reports 2013-04-18 00:12:37 +03:00
djcb
88520e45ec * mu-store-write: fix small leak 2013-04-17 00:16:26 +03:00
djcb
a5001acff0 * mu: more 'fixing'/'massaging' of queries 2013-04-17 00:09:08 +03:00
djcb
8c0b7eb92a * mu-msg-part: don't free wrapper, we don't own it 2013-04-17 00:07:05 +03:00
djcb
7c53aa327c * mu: handle addresses thay go beyond xapian's max term length (fixes issue #183)
(we truncate them)
2013-04-09 22:01:36 +03:00
djcb
3dc98724b3 * mu: provide fake-msgids for messages without; this fixes the problem where e.g. draft messages
were not visible when using --include-related
2013-04-09 21:20:25 +03:00
djcb
21a216acd2 * cosmetic 2013-04-07 16:05:10 +03:00
djcb
26b184c710 * mu-store-priv: when rebuilding, remove the contacts-cache file, too 2013-04-07 16:04:49 +03:00
djcb
f19500a1eb * mu-str: fix potential leak 2013-04-07 16:04:20 +03:00
djcb
a8489dc048 * mu-msg: initialize potentially uninitialized var 2013-04-07 16:04:00 +03:00
djcb
4cfeb201af * mu-contacts: convert the domain part of ascii-domains to lowercase 2013-04-07 16:03:25 +03:00
djcb
1f24e224a9 * more more copyright year updates 2013-03-30 11:38:01 +02:00
djcb
855e81db99 * update copyright years 2013-03-30 11:32:07 +02:00
djcb
22a30bf30b * mu: allow for searching the mailing-list field (list:/v:) 2013-03-17 12:20:10 +02:00
djcb
342195a248 * mu: fix pre-condition warning when getting related messages without threads 2013-03-16 18:25:19 +02:00
djcb
332554c2b0 * mu: update unit test (after more eager address matching) 2013-02-12 00:00:40 +02:00
djcb
564d3a3cd7 * cosmetic 2013-02-11 23:40:26 +02:00
djcb
89c555d047 * minor 2013-01-13 22:50:07 +02:00
djcb
bb2b65220a * for email address foo@bar.com, also save "foo" and "bar.com" so you can
search for them
2013-01-13 22:49:49 +02:00
djcb
f5f8d6de70 * mu_store_needs_upgrade --> mu_store_versions_match 2013-01-06 15:53:42 +02:00
djcb
e8f4f5976d * some minor updates in mu-store version check 2013-01-06 12:40:49 +02:00
djcb
9beed7042b * mu-store-write.cc: fix handling of str_list fields during indexing (Abdo Roig-Maranges) 2013-01-04 21:10:39 +02:00
djcb
70356a62f5 * mu-query/mu-msg-iter: when showing related message (--include-related),
favor the ones that were in the original set
2012-12-28 14:48:00 +02:00
djcb
a0d8d4f5da * use Abdo's threading improvements 2012-12-28 12:50:29 +02:00
djcb
f176c025d3 * add references unit test 2012-12-28 12:50:02 +02:00
djcb
deb862a488 * fix broken references: don't comma-separate 2012-12-28 12:49:31 +02:00
djcb
12f307c1b3 * mu-query: no need for sorting the first query when we do the sorting later 2012-12-27 16:00:13 +02:00
djcb
3d875307e2 * mu-msg-iter: temporarily disable skipping duplicates when threading
(we need thread-info for all duplicates too, since we do not know which one
  will end up in the final result set)
2012-12-27 15:59:15 +02:00
djcb
5310930ab8 * make sure tags are store in the database; this prevents reading the message
file when getting headers
2012-12-27 15:57:17 +02:00
djcb
05b04bdaed * mu-msg-iter.cc: don't skip dups on when threading
(due to sorting, we do not know if the same message are 'dup' or 'original'
  in the final results, so we need to calculate threading info for both)
2012-12-27 12:07:43 +02:00
djcb
c6a4e8f9ad * mu-query: re-introduce MU_QUERY_FLAG_THREADS, and only calculate threads for
the _second_ query when doing an --include-related query
2012-12-27 11:09:05 +02:00
djcb
99f473945e * mu-msg-iter: re-introduce MU_MSG_ITER_FLAG_THREADS, and special-case queries
with thread support
2012-12-27 11:07:52 +02:00
djcb
e387311c72 * mu-msg-file: guess 'mailing list' for feed2imap messages 2012-12-26 12:48:32 +02:00
djcb
e456998e7d * mu-query: create the query in a smarter way, which makes --include-related *much* faster 2012-12-26 10:12:25 +02:00
djcb
27a80dcb67 * handle the no-matches-found case correctly 2012-12-25 20:33:02 +02:00
djcb
c0a9102c6b * cosmetic 2012-12-25 19:43:06 +02:00
djcb
f525c54356 * mu-msg-iter.cc: get /all/ matches on the first go, thread those, then return
maxnum

  in situations where the number of matches is significantly greater than
  maxnum, results are much better this way.
2012-12-25 18:49:14 +02:00
djcb
7856ac939e * mu-query: implement MU_QUERY_FLAG_INCLUDE_RELATED, make threading non-optional 2012-12-25 17:34:24 +02:00
djcb
03921e6cf1 * mu-msg-iter: add mu_msg_iter_get_thread_id, make using threads non-optional 2012-12-25 17:32:43 +02:00
djcb
1a14d19cad * mu-util: add mu_util_get_hash (refactored) 2012-12-25 16:45:05 +02:00
djcb
19a0c1c478 * mu-msg, mu-msg-file: update doc for get_references a bit 2012-12-25 16:44:26 +02:00
djcb
a625371da2 * lib/: a the thread-id field, store it in the database 2012-12-25 16:43:34 +02:00
djcb
58f5e39d34 * add support for finding related messages to mu-find, mu4e, this does *not*
include the actual implementation though
2012-12-25 11:58:32 +02:00
djcb
f366c0f680 * mu-msg-iter: add mu_msg_iter_get_msgid and mu_msg_iter_get_refs 2012-12-24 14:59:48 +02:00
djcb
836c932f2a * mu-msg-iter.cc: cleanup the skip-dup checking a bit; in particular, include
the first one
2012-12-24 12:06:09 +02:00
djcb
c36906a254 * mu-msg-iter.cc: if we're using threaded search results, get *all* matches,
calculate threads and then return maxnum matches
2012-12-23 16:42:44 +02:00
djcb
d17dba683f * mu-script: don't use getline, use GIOChannel 2012-12-23 15:24:52 +02:00
djcb
5d63663ac6 * back out the threading patch for now, it gives errors
ERROR:mu-container.c:182:mu_container_append_children: assertion failed: (c != child)
2012-12-23 01:14:00 +02:00