Current implementation uses exact match.
This patch allows non-alphabetical differences (space, comma, etc). E.g if someone called "Doe, John" exists in the abook database, "doejohn" will now work.
It also looks up the NOTES field for matches. This makes it possible to "group" contacts using the NOTES field, and send group-email by querying the group name.