Search patterns for multiples address in to or cc
raf
mutt at raf.org
Mon Dec 19 22:57:20 UTC 2022
On Sun, Dec 18, 2022 at 09:22:33PM -0300, Marcelo Laia <marcelolaia at 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: 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.
>
> 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
More information about the Mutt-users
mailing list