For such tasks I usually use grepmail
In reply to Re: How to filter a *NIX Mailbox by b10m in thread How to filter a *NIX Mailbox by blazar