/*
** .pp
** This variable specifies notmuch tag which is used for unread messages. The
- ** variable is used to count unread messages in DB only. All other NeoMutt commands
- ** use standard (e.g. maildir) flags.
+ ** variable is used to count unread messages in DB and set the unread flag when
+ ** modifiying tags. All other NeoMutt commands use standard (e.g. maildir) flags.
*/
{ "nm_flagged_tag", DT_STRING, R_NONE, &NmFlaggedTag, IP "flagged" },
/*
** .pp
** This variable specifies notmuch tag which is used for flagged messages. The
- ** variable is used to count flagged messages in DB only. All other NeoMutt commands
- ** use standard (e.g. maildir) flags.
+ ** variable is used to count flagged messages in DB and set the flagged flag when
+ ** modifying tags. All other NeoMutt commands use standard (e.g. maildir) flags.
+ */
+ { "nm_replied_tag", DT_STRING, R_NONE, &NmRepliedTag, IP "replied" },
+ /*
+ ** .pp
+ ** This variable specifies notmuch tag which is used for replied messages. The
+ ** variable is used to set the replied flag when modifiying tags. All other NeoMutt
+ ** commands use standard (e.g. maildir) flags.
*/
#endif
#ifdef USE_NNTP
char *NmRecordTags; ///< Config: (notmuch) Tags to apply to the 'record' mailbox (sent mail)
char *NmUnreadTag; ///< Config: (notmuch) Tag to use for unread messages
char *NmFlaggedTag; ///< Config: (notmuch) Tag to use for flagged messages
+char *NmRepliedTag; ///< Config: (notmuch) Tag to use for replied messages
/**
* string_to_query_type - Lookup a query type
if (*tag == '-')
{
tag = tag + 1;
- if (strcmp(tag, "unread") == 0)
+ if (strcmp(tag, NmUnreadTag) == 0)
mutt_set_flag(ctx, e, MUTT_READ, 1);
- else if (strcmp(tag, "replied") == 0)
+ else if (strcmp(tag, NmRepliedTag) == 0)
mutt_set_flag(ctx, e, MUTT_REPLIED, 0);
- else if (strcmp(tag, "flagged") == 0)
+ else if (strcmp(tag, NmFlaggedTag) == 0)
mutt_set_flag(ctx, e, MUTT_FLAG, 0);
}
else
{
tag = (*tag == '+') ? tag + 1 : tag;
- if (strcmp(tag, "unread") == 0)
+ if (strcmp(tag, NmUnreadTag) == 0)
mutt_set_flag(ctx, e, MUTT_READ, 0);
- else if (strcmp(tag, "replied") == 0)
+ else if (strcmp(tag, NmRepliedTag) == 0)
mutt_set_flag(ctx, e, MUTT_REPLIED, 1);
- else if (strcmp(tag, "flagged") == 0)
+ else if (strcmp(tag, NmFlaggedTag) == 0)
mutt_set_flag(ctx, e, MUTT_FLAG, 1);
}
end = NULL;