mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-01-03 15:21:41 +01:00
lib/add-message: drop use of deprecated notmuch_message_get_flag.
As a side effect, we revert the switch from notmuch_bool_t to bool here. This is because those two types are not actually compatible when passing by reference.
This commit is contained in:
parent
ef27194a93
commit
a4776faa9b
1 changed files with 4 additions and 2 deletions
|
@ -477,7 +477,7 @@ notmuch_database_index_file (notmuch_database_t *notmuch,
|
||||||
notmuch_message_t *message = NULL;
|
notmuch_message_t *message = NULL;
|
||||||
notmuch_status_t ret = NOTMUCH_STATUS_SUCCESS, ret2;
|
notmuch_status_t ret = NOTMUCH_STATUS_SUCCESS, ret2;
|
||||||
notmuch_private_status_t private_status;
|
notmuch_private_status_t private_status;
|
||||||
bool is_ghost = false, is_new = false;
|
notmuch_bool_t is_ghost = false, is_new = false;
|
||||||
notmuch_indexopts_t *def_indexopts = NULL;
|
notmuch_indexopts_t *def_indexopts = NULL;
|
||||||
|
|
||||||
const char *date;
|
const char *date;
|
||||||
|
@ -525,7 +525,9 @@ notmuch_database_index_file (notmuch_database_t *notmuch,
|
||||||
is_new = true;
|
is_new = true;
|
||||||
break;
|
break;
|
||||||
case NOTMUCH_PRIVATE_STATUS_SUCCESS:
|
case NOTMUCH_PRIVATE_STATUS_SUCCESS:
|
||||||
is_ghost = notmuch_message_get_flag (message, NOTMUCH_MESSAGE_FLAG_GHOST);
|
ret = notmuch_message_get_flag_st (message, NOTMUCH_MESSAGE_FLAG_GHOST, &is_ghost);
|
||||||
|
if (ret)
|
||||||
|
goto DONE;
|
||||||
is_new = false;
|
is_new = false;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue