From f2c58642bbef385baf593c71584e93a6b795e029 Mon Sep 17 00:00:00 2001 From: Mehdi Abaakouk Date: Thu, 21 Sep 2017 08:10:33 +0200 Subject: [PATCH] tags: rename DRIVER_LABEL to DRIVER_TAGS --- mutt.h | 2 +- pattern.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mutt.h b/mutt.h index 35da5ef25..92106cecd 100644 --- 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, diff --git a/pattern.c b/pattern.c index 3a1532bcf..4aeafb80c 100644 --- 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)); -- 2.40.0