Search patterns for multiples address in to or cc
Kira Oakley
kira at eight45.net
Mon Dec 19 00:53:41 UTC 2022
On 12/18 21:22, Marcelo Laia wrote:
> I know and I use the ~C, ~b and ~B pattern for a specific search.
>
> How ever, I would like to search multiples address in to or cc header. Like
> this:
>
> to: someone1 at domain1.edu.au, someone2 at domain1.edu.au, ...
> cc: someone5 at domain2.edu.au, someone7 at domain10.edu.au, ...
>
> In fact, I would like to search messages that there are more than one
> address in to or cc header.
Hi Marcelo,
I wasn't clear on whether you are trying to limit to emails with ALL of
these addresses present, or ANY, or something else. Here are some
examples:
~c kira ~c marcelo
will match only emails BOTH of us are CC'd on, while
~c (kira\|marcelo)
will match on EITHER of us being CC'd. (The | needs to be escaped here
because it's a regex *within* a limit pattern.)
If you wanted, say, messages where 'kira' is CC'd OR 'marcelo' is TO'd,
you could use
(~t marcelo | ~c kira)
For your reference, I picked up some of these by looking over section
4.2 of the mutt manual.
Hope this helps,
~ Kira
More information about the Mutt-users
mailing list