adapt mail plugin autocomplete behaviour