The ~C is searching for "recipients" of a message. Bcc searcing will
only work in the $record folder, but should still be searched.
Likewise for ~L, which searches both "sender" and "recipients".
---
This address gitlab ticket #389
doc/manual.xml.head | 4 ++--
pattern.c | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/doc/manual.xml.head b/doc/manual.xml.head
index 87f6ecf7..ad31ac55 100644
--- a/doc/manual.xml.head
+++ b/doc/manual.xml.head
@@ -5964,8 +5964,8 @@ shows several ways to select messages.
<row><entry>=B <emphasis>STRING</emphasis></entry><entry>If IMAP is enabled,
like ~B but searches for <emphasis>STRING</emphasis> on the server, rather than
downloading each message and searching it locally.</entry></row>
<row><entry>~c <emphasis>EXPR</emphasis></entry><entry>messages carbon-copied
to <emphasis>EXPR</emphasis></entry></row>
<row><entry>%c <emphasis>GROUP</emphasis></entry><entry>messages carbon-copied
to any member of <emphasis>GROUP</emphasis></entry></row>
-<row><entry>~C <emphasis>EXPR</emphasis></entry><entry>messages either to: or
cc: <emphasis>EXPR</emphasis></entry></row>
-<row><entry>%C <emphasis>GROUP</emphasis></entry><entry>messages either to: or
cc: to any member of <emphasis>GROUP</emphasis></entry></row>
+<row><entry>~C <emphasis>EXPR</emphasis></entry><entry>messages to:, cc:, or
bcc: <emphasis>EXPR</emphasis></entry></row>
+<row><entry>%C <emphasis>GROUP</emphasis></entry><entry>messages to:, cc:, or
bcc: to any member of <emphasis>GROUP</emphasis></entry></row>
<row><entry>~d
[<emphasis>MIN</emphasis>]-[<emphasis>MAX</emphasis>]</entry><entry>messages
with <quote>date-sent</quote> in a Date range</entry></row>
<row><entry>~D</entry><entry>deleted messages</entry></row>
<row><entry>~e <emphasis>EXPR</emphasis></entry><entry>messages which contains
<emphasis>EXPR</emphasis> in the <quote>Sender</quote> field</entry></row>
diff --git a/pattern.c b/pattern.c
index d917236b..11d97abe 100644
--- a/pattern.c
+++ b/pattern.c
@@ -157,7 +157,7 @@ static const struct pattern_flags
/* L10N:
Pattern Completion Menu description for ~L
*/
- N_("messages whose From/Sender/To/CC matches EXPR") },
+ N_("messages whose From/Sender/To/CC/BCC matches EXPR") },
{ 'm', MUTT_MESSAGE, 0, EAT_RANGE,
/* L10N:
Pattern Completion Menu description for ~m
@@ -1690,12 +1690,12 @@ mutt_pattern_exec(struct pattern_t *pat,
pattern_exec_flag flags, CONTEXT *ctx,
return (pat->not ^ (match_reference(pat, h->env->references) ||
match_reference(pat, h->env->in_reply_to)));
case MUTT_ADDRESS:
- return (pat->not ^ match_adrlist(pat, flags & MUTT_MATCH_FULL_ADDRESS, 4,
+ return (pat->not ^ match_adrlist(pat, flags & MUTT_MATCH_FULL_ADDRESS, 5,
h->env->from, h->env->sender,
- h->env->to, h->env->cc));
+ h->env->to, h->env->cc, h->env->bcc));
case MUTT_RECIPIENT:
return (pat->not ^ match_adrlist(pat, flags & MUTT_MATCH_FULL_ADDRESS,
- 2, h->env->to, h->env->cc));
+ 3, h->env->to, h->env->cc,
h->env->bcc));
case MUTT_LIST: /* known list, subscribed or not */
if (cache)
{
--
2.53.0