WHERE char *NotmuchUnreadTag;
WHERE char *NotmuchHiddenTags;
WHERE char *VirtFolderFormat;
+WHERE int NotmuchDBLimit;
#endif
** variable is used to count unread messages in DB only. All other mutt commands
** use standard (e.g. maildir) flags.
*/
+ { "nm_db_limit", DT_NUM, R_NONE, UL &NotmuchDBLimit, 0 },
+ /*
+ ** .pp
+ ** This variable specifies the default limit used in notmuch queries.
+ */
#endif
{ "pager", DT_PATH, R_NONE, UL &Pager, UL "builtin" },
/*
data = safe_calloc(1, sizeof(struct nm_ctxdata));
dprint(1, (debugfile, "nm: initialize context data %p\n", data));
+ data->db_limit = NotmuchDBLimit;
+
if (url_parse_query(uri, &data->db_filename, &data->query_items)) {
mutt_error(_("failed to parse notmuch uri: %s"), uri);
data->db_filename = NULL;