]> granicus.if.org Git - neomutt/commitdiff
tags: rename DRIVER_LABEL to DRIVER_TAGS
authorMehdi Abaakouk <sileht@sileht.net>
Thu, 21 Sep 2017 06:10:33 +0000 (08:10 +0200)
committerRichard Russon <rich@flatcap.org>
Tue, 3 Oct 2017 12:47:31 +0000 (13:47 +0100)
mutt.h
pattern.c

diff --git a/mutt.h b/mutt.h
index 35da5ef250fb0ae8db420aad231b3c52b9acc42b..92106cecd5d10f83565389aad405d166633b4a8c 100644 (file)
--- a/mutt.h
+++ b/mutt.h
@@ -197,7 +197,7 @@ enum MuttMisc
   MUTT_PGP_KEY,
   MUTT_XLABEL,
   MUTT_SERVERSEARCH,
-  MUTT_DRIVER_LABEL,
+  MUTT_DRIVER_TAGS,
   MUTT_MIMEATTACH,
 #ifdef USE_NNTP
   MUTT_NEWSGROUPS,
index 3a1532bcf5a01d47d021410b5f0beb7f0c5002ef..4aeafb80c3cb88b0f903bdc9eb4519caa48c4499 100644 (file)
--- a/pattern.c
+++ b/pattern.c
@@ -872,7 +872,7 @@ static const struct PatternFlags
   { 'x', MUTT_REFERENCE, 0, eat_regex },
   { 'X', MUTT_MIMEATTACH, 0, eat_range },
   { 'y', MUTT_XLABEL, 0, eat_regex },
-  { 'Y', MUTT_DRIVER_LABEL, 0, eat_regex },
+  { 'Y', MUTT_DRIVER_TAGS, 0, eat_regex },
   { 'z', MUTT_SIZE, 0, eat_range },
   { '=', MUTT_DUPLICATED, 0, NULL },
   { '$', MUTT_UNREFERENCED, 0, NULL },
@@ -1712,7 +1712,7 @@ int mutt_pattern_exec(struct Pattern *pat, enum PatternExecFlag flags,
       return (pat->not ^ ((h->security & APPLICATION_PGP) && (h->security & PGPKEY)));
     case MUTT_XLABEL:
       return (pat->not ^ (h->env->x_label && patmatch(pat, h->env->x_label) == 0));
-    case MUTT_DRIVER_LABEL:
+    case MUTT_DRIVER_TAGS:
     {
       char *tags = driver_tags_get(&h->tags);
       bool ret = (pat->not ^ (tags && patmatch(pat, tags) == 0));