On Sun, Dec 18, 2022 at 09:22:33PM -0300, Marcelo Laia <marcelol...@gmail.com> 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. > > This is more a regex that mutt, I think. > > Have you a time to helpe me? > > Thank you so much! > > -- > Marcelo Perhaps you just need '~C @.+,.+@'. That should match two addresses with a comma between them. But I just tried it and it doesn't work. :-( Perhaps ~C matches individual recipients rather than the complete To: and Cc: headers. Replacing ~C with ~h works but it might match other headers. This seems to work: ~h ^(To|Cc):.*@.+,.+@ Of course comments that contain "@" and "," will match as well, but they should be rare. cheers, raf