SMTP based on mail subject

need to write an irule based on the mail subject.

if subject is “Test”, it would be forwarded to first 5 backend servers, or to second back end servers