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: someo...@domain1.edu.au, someo...@domain1.edu.au, ... > cc: someo...@domain2.edu.au, someo...@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