how to limit/filter on a fixed set of adresses (group)

2015-10-12 Thread Gregor Zattler
Dear mutt users,

I would wish to limit/search etc. emails which are addressed to a
group of 6 email addresses.  But %C matches if one of the
addresses in the emails header matches one of the groups email
addresses.  This does not check if all addresses match nor if
there are addresses which are not part of the group.

The limit/search should not be triggered if only one or some of
the addresses match but all of them and none else.  Is this
doable? if so, how?

If it's not doable, is it possible to match:

- if only addresses from the group match (none else)?

- if all addresses of the group match (and perhaps additional
  others)?



Thanks, Gregor
-- 
 -... --- .-. . -.. ..--.. ...-.-



Re: how to limit/filter on a fixed set of adresses (group)

2015-10-12 Thread Will Yardley
On Mon, Oct 12, 2015 at 04:51:23PM +0200, Gregor Zattler wrote:

> I would wish to limit/search etc. emails which are addressed to a
> group of 6 email addresses.  But %C matches if one of the
> addresses in the emails header matches one of the groups email
> addresses.  This does not check if all addresses match nor if
> there are addresses which are not part of the group.
> 
> The limit/search should not be triggered if only one or some of
> the addresses match but all of them and none else.  Is this
> doable? if so, how?

You can require all to match by using the search pattern:
~C us...@example.com ~C us...@example.net ~C foo@domain.invalid

However, I can't think of a way within Mutt to limit to only those N
addresses and no othersĀ (though you could exclude explicit addresses
with '!~C bar@...').

You'd probably have to either limit further by hand, or write a script
to do this.

w