How to filter both from and to address with a single test?
Rules are unfortunately quite limited, but you can sometimes use Smart Mailboxes to help you work around the problem.

For example, if you need a Rule that performs an action when the conditions (A OR B) AND C are met, you can set up a Smart Mailbox called 'X' that contains all emails where (A OR B) is true, then a second Smart Mailbox called Y that contains all emails where (C is true AND Mailbox Is X).

If necessary, you could then set up a rule that does whatever processing you need to do on the contents of mailbox Y, and run it manually as required (select all messages in mailbox Y, then Message->Apply Rules).