Partial answer
I need to filter any mails directly addressed to me. It shouldn't pick mails in which I am in cc.
This worked for me:
to:me AND NOT cc:me
Update:
We have more conditions. My assumptions are as follows:
- Show all emails sent to me but not as CC.
- Show all emails sent to a group where my email is listed in CC.
Use the search string as given below:
(to:me AND NOT cc:me) OR (to:GROUP AND cc:me)
Replace GROUP with group email.