X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Fmessage.cc;h=bd3cb5af02dbefeb01c80b7bc083962a3dea018f;hb=68108817054d3a88e52fe2f8d9a118b4b26f6e26;hp=560f274658538d78ab72869251de0bc970557497;hpb=b0a11dbc3822271e948f625ca326e86ff68f2e57;p=notmuch diff --git a/lib/message.cc b/lib/message.cc index 560f2746..bd3cb5af 100644 --- a/lib/message.cc +++ b/lib/message.cc @@ -169,6 +169,7 @@ _notmuch_message_create_for_document (const void *talloc_owner, message->doc = doc; message->termpos = 0; + message->modified = FALSE; return message; } @@ -288,7 +289,7 @@ _notmuch_message_create_for_message_id (notmuch_database_t *notmuch, doc_id = _notmuch_database_generate_doc_id (notmuch); } catch (const Xapian::Error &error) { - _notmuch_database_log (notmuch_message_get_database (message), + _notmuch_database_log (notmuch, "A Xapian exception occurred creating message: %s\n", error.get_msg ().c_str ()); notmuch->exception_reported = true;