I've configured the inbound email queues to automatically create cases which is working perfectly but the case isn't assigned to the contact record. I'd like the cases module to search the contacts module and assign it to the contact with a matching email address.

For example, if test@test.com sends in an email a case is created and I want the cases module to search the contacts module for test@test.com and create the relationship.

Can anyone tell me if this can be done and how?