int indent, const notmuch_show_params_t *params);
static const notmuch_show_format_t format_text = {
- .message_set_start = "",
.part = format_part_text,
- .message_set_sep = "",
- .message_set_end = ""
};
static notmuch_status_t
int indent, const notmuch_show_params_t *params);
static const notmuch_show_format_t format_mbox = {
- .message_set_start = "",
.part = format_part_mbox,
- .message_set_sep = "",
- .message_set_end = ""
};
static notmuch_status_t
unused (const notmuch_show_params_t *params));
static const notmuch_show_format_t format_raw = {
- .message_set_start = "",
.part = format_part_raw,
- .message_set_sep = "",
- .message_set_end = ""
};
static const char *
return 1;
}
- notmuch = notmuch_database_open (notmuch_config_get_database_path (config),
- NOTMUCH_DATABASE_MODE_READ_ONLY);
- if (notmuch == NULL)
+ if (notmuch_database_open (notmuch_config_get_database_path (config),
+ NOTMUCH_DATABASE_MODE_READ_ONLY, ¬much))
return 1;
query = notmuch_query_create (notmuch, query_string);
}
notmuch_query_destroy (query);
- notmuch_database_close (notmuch);
+ notmuch_database_destroy (notmuch);
if (params.cryptoctx)
g_object_unref(params.cryptoctx);