Re: Automatic suppression of non-duplicate messages

Subject: Re: Automatic suppression of non-duplicate messages

Date: Sat, 03 Nov 2012 16:53:19 -0400

To: Eirik Byrkjeflot Anonsen, notmuch@notmuchmail.org

Cc:

From: David Bremner


Eirik Byrkjeflot Anonsen <eirik@eirikba.org> writes:

> That's not what I see.  If I search for a term that only appears in
> one of the "copies", none of the copies are included in the search
> result.

The offending code is at line 1813 of lib/database.cc; the message is
only indexed if the message-id is new.

It might be sensible to move _notmuch_message_index_file into the other
branch of the if, but even if that works fine, something more
sophisticated is needed for the call to
__notmuch_message_set_header_values; the invariant that each message has
a single subject seems reasonable.

Offhand I'm not sure of a good method of automatically deciding what is
the same message (with e.g. headers and footer text added by a mailing
list).




Thread: