]> git.notmuchmail.org Git - notmuch/blob - test/database-test.h
build: drop support for xapian versions less than 1.4
[notmuch] / test / database-test.h
1 #ifndef _DATABASE_TEST_H
2 #define _DATABASE_TEST_H
3 /* Add a new stub message to the given notmuch database.
4  *
5  * At least the following return values are possible:
6  *
7  * NOTMUCH_STATUS_SUCCESS: Message successfully added to database.
8  *
9  * NOTMUCH_STATUS_DUPLICATE_MESSAGE_ID: Message has the same message
10  *      ID as another message already in the database.
11  *
12  * NOTMUCH_STATUS_READ_ONLY_DATABASE: Database was opened in read-only
13  *      mode so no message can be added.
14  */
15
16 notmuch_status_t
17 notmuch_database_add_stub_message (notmuch_database_t *database,
18                                    const char *message_id,
19                                    const char **tag_list);
20
21 #endif