On Sun, Dec 18, 2022 at 09:22:33PM -0300, Marcelo Laia <[email protected]> 
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: [email protected], [email protected], ...
> cc: [email protected], [email protected], ...
> 
> 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

Reply via email to