* start using message threading (--threads/-t param for mu find)

This commit is contained in:
Dirk-Jan C. Binnema
2011-06-30 23:45:53 +03:00
parent 15ac5f04c9
commit 2d1f8366d5
5 changed files with 10 additions and 9 deletions

View File

@ -56,8 +56,8 @@ libmu_la_SOURCES= \
mu-cmd.h \ mu-cmd.h \
mu-config.c \ mu-config.c \
mu-config.h \ mu-config.h \
mu-contacts.h \
mu-contacts.c \ mu-contacts.c \
mu-contacts.h \
mu-index.c \ mu-index.c \
mu-index.h \ mu-index.h \
mu-log.c \ mu-log.c \
@ -81,8 +81,6 @@ libmu_la_SOURCES= \
mu-msg-prio.c \ mu-msg-prio.c \
mu-msg-prio.h \ mu-msg-prio.h \
mu-msg-priv.h \ mu-msg-priv.h \
mu-msg-threader.c \
mu-msg-threader.h \
mu-msg.c \ mu-msg.c \
mu-msg.h \ mu-msg.h \
mu-msg.h \ mu-msg.h \
@ -95,6 +93,10 @@ libmu_la_SOURCES= \
mu-str-normalize.c \ mu-str-normalize.c \
mu-str.c \ mu-str.c \
mu-str.h \ mu-str.h \
mu-threader-utils.c \
mu-threader-utils.h \
mu-threader.c \
mu-threader.h \
mu-util-db.cc \ mu-util-db.cc \
mu-util.c \ mu-util.c \
mu-util.h mu-util.h

View File

@ -42,7 +42,7 @@
#include "mu-util.h" #include "mu-util.h"
#include "mu-cmd.h" #include "mu-cmd.h"
#include "mu-msg-threader.h" #include "mu-threader.h"
enum _OutputFormat { enum _OutputFormat {
FORMAT_JSON, FORMAT_JSON,

View File

@ -663,7 +663,7 @@ get_body (MuMsgFile *self, gboolean want_html)
gboolean static gboolean
contains (GSList *lst, const char *str) contains (GSList *lst, const char *str)
{ {
for (; lst; lst = g_slist_next(lst)) for (; lst; lst = g_slist_next(lst))

View File

@ -29,8 +29,7 @@
#include "mu-util.h" #include "mu-util.h"
#include "mu-msg.h" #include "mu-msg.h"
#include "mu-msg-iter.h" #include "mu-msg-iter.h"
#include "mu-msg-threader.h" #include "mu-threader.h"
/* just a guess... */ /* just a guess... */
#define MAX_FETCH_SIZE 10000 #define MAX_FETCH_SIZE 10000
@ -58,7 +57,7 @@ struct _MuMsgIter {
if (threads && !_matches.empty()) { if (threads && !_matches.empty()) {
_matches.fetch(); _matches.fetch();
_threadhash = mu_msg_threader_calculate _threadhash = mu_threader_calculate
(this, _matches.size()); (this, _matches.size());
ThreadKeyMaker keymaker(_threadhash); ThreadKeyMaker keymaker(_threadhash);
enq.set_sort_by_key (&keymaker, false); enq.set_sort_by_key (&keymaker, false);

View File

@ -21,7 +21,7 @@
#include "mug-msg-list-view.h" #include "mug-msg-list-view.h"
#include "mu-query.h" #include "mu-query.h"
#include "mu-str.h" #include "mu-str.h"
#include "mu-msg-threader.h" #include "mu-threader.h"
/* 'private'/'protected' functions */ /* 'private'/'protected' functions */
static void mug_msg_list_view_class_init (MugMsgListViewClass * klass); static void mug_msg_list_view_class_init (MugMsgListViewClass * klass);