Create new FromFilter that checks for exact matching
Description
Since FromContainsFilter checks if a given text is included in the FROM JID then it is possible to obtain "unexpected" results if you have JIDs like this myusername@server.com and username@server.com where the filter is filtering by username. As you can see both JIDs will match the filter.
This issue is not fixed yet. There are still occurrences of the broken FromContainsFilter class. Moreover, FromMatchesFilter configured for e.g. "foo@example.com" matches not only
Since FromContainsFilter checks if a given text is included in the FROM JID then it is possible to obtain "unexpected" results if you have JIDs like this myusername@server.com and username@server.com where the filter is filtering by username. As you can see both JIDs will match the filter.
This problem generates this reported issue:
http://www.jivesoftware.org/forums/thread.jspa?threadID=15362&tstart=0