Commit Graph

1060 Commits

Author SHA1 Message Date
f176c025d3 * add references unit test 2012-12-28 12:50:02 +02:00
deb862a488 * fix broken references: don't comma-separate 2012-12-28 12:49:31 +02:00
12f307c1b3 * mu-query: no need for sorting the first query when we do the sorting later 2012-12-27 16:00:13 +02:00
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
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
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
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
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
e387311c72 * mu-msg-file: guess 'mailing list' for feed2imap messages 2012-12-26 12:48:32 +02:00
e456998e7d * mu-query: create the query in a smarter way, which makes --include-related *much* faster 2012-12-26 10:12:25 +02:00
27a80dcb67 * handle the no-matches-found case correctly 2012-12-25 20:33:02 +02:00
c0a9102c6b * cosmetic 2012-12-25 19:43:06 +02:00
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
7856ac939e * mu-query: implement MU_QUERY_FLAG_INCLUDE_RELATED, make threading non-optional 2012-12-25 17:34:24 +02:00
03921e6cf1 * mu-msg-iter: add mu_msg_iter_get_thread_id, make using threads non-optional 2012-12-25 17:32:43 +02:00
1a14d19cad * mu-util: add mu_util_get_hash (refactored) 2012-12-25 16:45:05 +02:00
19a0c1c478 * mu-msg, mu-msg-file: update doc for get_references a bit 2012-12-25 16:44:26 +02:00
a625371da2 * lib/: a the thread-id field, store it in the database 2012-12-25 16:43:34 +02:00
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
f366c0f680 * mu-msg-iter: add mu_msg_iter_get_msgid and mu_msg_iter_get_refs 2012-12-24 14:59:48 +02:00
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
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
d17dba683f * mu-script: don't use getline, use GIOChannel 2012-12-23 15:24:52 +02:00
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
c5f8ea6451 * use AM_CPPFLAGS instead of INCLUDES 2012-12-22 22:54:50 +02:00
4f37e979e1 * some small improvements for the mailing list support 2012-12-22 21:57:49 +02:00
4c47b0b122 * mu-msg-iter.cc: improve dup checking 2012-12-22 21:12:11 +02:00
a287074f7b * match all fields in query with explicit prefix 2012-12-22 11:47:20 +02:00
90b2228b2e * match all fields in query with explicit prefix 2012-12-22 11:46:36 +02:00
d6332f3cc8 * mu-query: minor updates 2012-12-20 23:37:04 +02:00
e883ef5a07 * mu-msg-sexp: propagate mailing list info to mu4e 2012-12-20 23:36:28 +02:00
d47a687a4d * lib/: add support for getting mailing lists 2012-12-20 23:35:53 +02:00
7053582dd7 * add skipping-dups support to mu4e 2012-12-17 22:30:26 +02:00
76adc694c0 * add basic support for skipping dups, unreadable messages in mu-msg-iter 2012-12-17 22:29:39 +02:00
1872d210c9 * add support for searching the mailing list of a message 2012-12-17 22:24:19 +02:00
2f9dd78bb0 * add query flags (which match msgiterflags) to mu_query_run, update callers 2012-12-16 15:08:34 +02:00
8fdd82d549 * mu-msg-iter.{cc,h}: make flag names a bit clearer 2012-12-16 15:08:03 +02:00
4ccfe56e41 * cosmetic 2012-12-16 14:18:31 +02:00
9c0ec479f5 * mu-query: update for mu-msg-iter updates 2012-12-16 14:18:22 +02:00
50f5c7affb * mu-msg-iter: add basic implemenation of checking for msgid dups, msg file
existence
2012-12-16 14:17:58 +02:00
cbbb23c13f * Fixes for the threading algorithm (thanks to Abdó Roig)
The problem was that once a container got a parent, it did not change it anymore
  due to the child_elligible condition, but the parent might have been assigned
  from an incomplete References sequence.

  Now, we make sure the last reference gets to be the message's parent (following
  the JWZ's algorithm), reparenting the message if necessary. This makes sense, as
  the last parent-child relationship (between last ref and the message) is the
  most reliable piece of info here.

  Instead of child_elligible, we now only check that the new parent is not a
  descendant of the current message, to prevent making a loop. Everything else is
  fine, as it only moves a subtree around.
2012-12-09 13:48:22 +02:00
241af50e97 * update / add testcases for string normalization 2012-12-09 13:34:16 +02:00
58599ab8f9 * fix bug normalizing mixed (e.g. Latin etc. and Cyrillic) uf8 text 2012-12-09 13:33:45 +02:00
30f93663b0 * lib: do some more escaping of body text 2012-11-18 22:09:56 +02:00
ef1791ec7c * support single dates (shortcut for ranges) in queries (thanks to Eygene Ryabinkin) 2012-11-17 21:25:09 +02:00
8e60018176 * fix test-mu-maildir unit test for running as root 2012-11-08 22:31:51 +02:00
89c78d6767 * fix typo 2012-11-08 22:20:31 +02:00
e5425081cc * remove hard dependency on wordexp.h (OpenBSD does not have it) 2012-11-08 22:19:28 +02:00
aaec71634e * cosmetics 2012-10-31 20:36:02 +02:00
32c0173b4e * lib: doxygen support (WIP, just starting...) 2012-10-27 14:42:21 +03:00