]> git.notmuchmail.org Git - notmuch/commit
add_message: Re-order the code a bit (find message-id first).
authorCarl Worth <cworth@cworth.org>
Fri, 23 Oct 2009 12:30:37 +0000 (05:30 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 23 Oct 2009 12:30:37 +0000 (05:30 -0700)
commit31044d10ed114637464481d1a0f4771ed170950e
tree55bff5e2b98744175e835d99e83f37c63754dc09
parentc78358fa8adc0e8fa4f889e479df76e8df186264
add_message: Re-order the code a bit (find message-id first).

We're preparing for being able to deal with files with duplicate
message IDs here. The plan is to create a notmuch_message_t object in
add_message that may or may not reference a document that exists in
the database. So to do this, we have to find the message ID before we
do any manipulation of the doc.
database.cc