Be flexible in case of database inconsistencies.
Remove setting session messages.
Simplyfy recipient search.
Remove trailing spaces.