Commit a804bacf authored by Alex Wenckus's avatar Alex Wenckus Committed by alex

implemented email search and wrote functional tests to confirm functionality.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/tags/openfire_3_3_1@8907 b35dd754-fafc-0310-a699-88a17e54d16e
parent 94e60c29
......@@ -79,13 +79,13 @@ public class SearchPlugin implements Component, Plugin, PropertyEventListener {
// Some clients, such as Miranda, are hard-coded to search specific fields,
// so we map those fields to the fields that Openfire actually supports.
fieldLookup.put("jid", "Username");
fieldLookup.put("username", "Username");
fieldLookup.put("first", "Name");
fieldLookup.put("last", "Name");
fieldLookup.put("nick", "Name");
fieldLookup.put("name", "Name");
fieldLookup.put("email", "Email");
fieldLookup.put("jid", "username");
fieldLookup.put("username", "username");
fieldLookup.put("first", "name");
fieldLookup.put("last", "name");
fieldLookup.put("nick", "name");
fieldLookup.put("name", "name");
fieldLookup.put("email", "email");
}
public String getName() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment