Done messages search function