how to automatically marge identical cases?

how to automatically marge identical cases?

I get multiple cases if someone send mail to two of my agents.
How can I identify and marge this cases to one case?