* mu-threader.c: for now disable the special code for messages with dup msgids

as this is causing infloops... FIXME
This commit is contained in:
djcb 2012-04-03 23:31:04 +03:00
parent 69c57f8961
commit eff294796d
1 changed files with 6 additions and 4 deletions

View File

@ -173,8 +173,8 @@ find_or_create (GHashTable *id_table, MuMsg *msg, guint docid)
c->docid = docid; c->docid = docid;
return c; return c;
} else { } else {
char fakeid[16]; /* char fakeid[16]; */
static unsigned id = 0; /* static unsigned id = 0; */
/* c && c->msg */ /* c && c->msg */
/* special case, not in the JWZ algorithm: the /* special case, not in the JWZ algorithm: the
* container exists already and has a message; this * container exists already and has a message; this
@ -191,8 +191,10 @@ find_or_create (GHashTable *id_table, MuMsg *msg, guint docid)
/* add the container to the id-table with a /* add the container to the id-table with a
* fake-id so it will be freed when the * fake-id so it will be freed when the
* id_table is destroyed */ * id_table is destroyed */
snprintf (fakeid, sizeof(fakeid), "%x", ++id);
g_hash_table_insert (id_table, (gpointer)fakeid, c); /* FIXME: below leads to infloop */
/* snprintf (fakeid, sizeof(fakeid), "%x", ++id); */
/* g_hash_table_insert (id_table, (gpointer)fakeid, c); */
return NULL; /* don't process this message further */ return NULL; /* don't process this message further */
} }