]> git.notmuchmail.org Git - notmuch/commit
add_message: Don't add any self-references to the database.
authorCarl Worth <cworth@cworth.org>
Wed, 18 Nov 2009 01:20:32 +0000 (17:20 -0800)
committerCarl Worth <cworth@cworth.org>
Wed, 18 Nov 2009 01:55:37 +0000 (17:55 -0800)
commit64c03ae97f2f5294c60ef25d7f41849864e6ebd3
tree6cab7296efa38e2fb137e4b359eef0a79ed3df51
parentf7eaeff242dd08c4020401c3b2e2e1ad2f769fe0
add_message: Don't add any self-references to the database.

In our scheme it's illegal for any message to refer to itself, (nor
would it be useful for anything anyway). Cut these self-references off
at the source, before they trip up any internal errors.
lib/database.cc
lib/messages.c