notmuch/lib
Aaron Ecay cf8aaafbad lib/database.cc: change how the parent of a message is calculated
Presently, the code which finds the parent of a message as it is being
added to the database assumes that the first Message-ID-like substring
of the In-Reply-To header is the parent Message ID.  Some mail clients,
however, put stuff other than the Message-ID of the parent in the
In-Reply-To header, such as the email address of the sender of the
parent.  This can fool notmuch.

The updated algorithm prefers the last Message ID in the References
header.  The References header lists messages oldest-first, so the last
Message ID is the parent (RFC2822, p. 24).  The References header is
also less likely to be in a non-standard
syntax (http://cr.yp.to/immhf/thread.html,
http://www.jwz.org/doc/threading.html).  In case the References header
is not to be found, fall back to the old behavior.

V2 of this patch, incorporating feedback from Jani and (indirectly)
Austin.
2013-05-13 21:29:13 -03:00
..
database-private.h lib: add date range query support 2012-10-31 16:55:32 -03:00
database.cc lib/database.cc: change how the parent of a message is calculated 2013-05-13 21:29:13 -03:00
directory.cc lib: Perform the same transformation to _notmuch_database_find_directory_id 2012-05-23 22:30:32 -03:00
filenames.c lib: fix NULL checks for filenames iterators 2012-09-01 23:03:11 -03:00
gen-version-script.sh lib/gen-version-script.h: add getline and getdelim to notmuch.sym if needed 2011-09-05 07:44:14 -03:00
index.cc _notmuch_message_index_file: unref (free) address lists from gmime. 2012-12-24 19:02:22 -04:00
libsha1.c fix sum moar typos [comments in source code] 2011-06-23 15:58:39 -07:00
libsha1.h fix sum moar typos [comments in source code] 2011-06-23 15:58:39 -07:00
Makefile fix sum moar typos [build scripts, Makefiles] 2011-06-23 15:44:59 -07:00
Makefile.local lib/Makefile.local: depend on libs we are linking with 2013-01-22 08:59:33 -04:00
message-file.c lib/message-file.c: use g_malloc () & g_free () in hash table values 2012-12-24 19:02:05 -04:00
message.cc lib/message.cc: stale pointer bug (v3) 2013-05-03 21:17:56 -03:00
messages.c lib: Eliminate _notmuch_message_list_append 2013-02-18 20:20:38 -04:00
notmuch-private.h lib: Eliminate _notmuch_message_list_append 2013-02-18 20:20:38 -04:00
notmuch.h lib: Add an iterator over all messages in a thread 2013-02-18 20:20:59 -04:00
parse-time-vrp.cc lib: add date range query support 2012-10-31 16:55:32 -03:00
parse-time-vrp.h lib: add date range query support 2012-10-31 16:55:32 -03:00
query.cc bitmap:improve memory usage using CHAR_BITS and unsigned CHAR 2013-02-15 20:05:10 -04:00
sha1.c Typsos 2009-11-18 03:21:36 -08:00
string-list.c Fixup string list author 2011-03-21 02:45:18 -04:00
tags.c lib: fix warnings when building with clang 2012-12-01 08:10:32 -04:00
thread.cc lib: Fix name reordering to handle commas without spaces 2013-03-29 09:24:29 -04:00