Default is "unread,draft,flagged,passed,replied,attachment".
+ nm_exclude_tags = <comma delimited list>
+
+ The messages tagged with these tags are excluded and not loaded
+ from notmuch DB to mutt unless specified explicitly.
+
+ Not set by default.
+
nm_unread_tag = <name>
This variable specifies notmuch tag which is used for unread messages. The
#ifdef USE_NOTMUCH
WHERE int NotmuchOpenTimeout;
WHERE char *NotmuchDefaultUri;
+WHERE char *NotmuchExcludeTags;
WHERE char *NotmuchUnreadTag;
WHERE char *NotmuchHiddenTags;
WHERE char *VirtFolderFormat;
** This variable specifies private notmuch tags which should not be printed
** on screen.
*/
+ { "nm_exclude_tags", DT_STR, R_NONE, UL &NotmuchExcludeTags, 0 },
+ /*
+ ** .pp
+ ** The messages tagged with these tags are excluded and not loaded
+ ** from notmuch DB to mutt unless specified explicitly.
+ */
{ "nm_unread_tag", DT_STR, R_NONE, UL &NotmuchUnreadTag, UL "unread" },
/*
** .pp
if (!q)
goto err;
+ if (NotmuchExcludeTags) {
+ char *buf = safe_strdup(NotmuchExcludeTags);
+ char *p, *tag = NULL, *end = NULL;
+
+ for (p = buf; p && *p; p++) {
+ if (!tag && isspace(*p))
+ continue;
+ if (!tag)
+ tag = p; /* begin of the tag */
+ if (*p == ',' || *p == ' ')
+ end = p; /* terminate the tag */
+ else if (*(p + 1) == '\0')
+ end = p + 1; /* end of optstr */
+ if (!tag || !end)
+ continue;
+ if (tag >= end)
+ break;
+ *end = '\0';
+
+ dprint(2, (debugfile, "nm: query explude tag '%s'\n", tag));
+ notmuch_query_add_tag_exclude(q, tag);
+ end = tag = NULL;
+ }
+ FREE(&buf);
+
+ }
notmuch_query_set_sort(q, NOTMUCH_SORT_NEWEST_FIRST);
dprint(2, (debugfile, "nm: query successfully initialized\n"));
return q;