How to filter both from and to address with a single test? I can't seem to find a simple way to filter mail that is either to or from a given address. It seems that you have to duplicate the address and use two conditions e.g.

From - contains - fred@nowehere.com
Any recipient - contains - fred@nowehere.com


I would have hoped that "Any recipient" might include "From" but it seems that it only  includes "To", "Cc", "Bcc", etc.
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).